Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo VHD Diff Setter created by Wolfgang Unger and modified by ZiroKyl http://9b.asoiu.com/?p=2793
- REM #########################
- REM Variables
- REM #########################
- set VHD_Drive=%~d0
- set VHD_Parent=VHD\PROJECTOR_PC.VHD
- set VHD_OverWoops=VHD\PROJECTOR_PC_woops.VHD
- set VHD_OverFile1=VHD\PROJECTOR_PC_over1.VHD
- set VHD_OverFile2=VHD\PROJECTOR_PC_over2.VHD
- set VHD_ParentGUID={e3ccf963-9152-11e2-ad48-829adb767c32}
- set VHD_OverGUID1={e3ccf964-9152-11e2-ad48-829adb767c32}
- set VHD_OverGUID2={e3ccf965-9152-11e2-ad48-829adb767c32}
- set TempFile=%~d0\VHD\diskpart.log
- REM #########################
- REM Delete both over file AND woops file.
- del %VHD_Drive%\%VHD_OverWoops%
- del %VHD_Drive%\%VHD_OverFile1%
- del %VHD_Drive%\%VHD_OverFile2%
- echo create vdisk file=%VHD_Drive%\%VHD_OverWoops% parent=%VHD_Drive%\%VHD_Parent% > %TempFile%
- echo create vdisk file=%VHD_Drive%\%VHD_OverFile1% parent=%VHD_Drive%\%VHD_Parent% >> %TempFile%
- echo create vdisk file=%VHD_Drive%\%VHD_OverFile2% parent=%VHD_Drive%\%VHD_Parent% >> %TempFile%
- echo exit >> %TempFile%
- diskpart /s %TempFile%
- bcdedit /set %VHD_ParentGUID% device vhd=[%VHD_Drive%]\%VHD_OverWoops%
- bcdedit /set %VHD_ParentGUID% osdevice vhd=[%VHD_Drive%]\%VHD_OverWoops%
- bcdedit /default %VHD_OverGUID1%
- del %TempFile%
- echo Done.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement