SHOW:
|
|
- or go back to the newest paste.
1 | - | echo VHD Diff Setter created by Wolfgang Unger and modified by ZiroKyl http://9b.asoiu.com/?p=2793 |
1 | + | echo VHD Diff Setter created by Wolfgang Unger and modified by ZiroKyl http://9b.asoiu.com/?p=2793 |
2 | ||
3 | REM ######################### | |
4 | REM Variables | |
5 | REM ######################### | |
6 | set VHD_Drive=%~d0 | |
7 | set VHD_Parent=VHD\PROJECTOR_PC.VHD | |
8 | set VHD_OverWoops=VHD\PROJECTOR_PC_woops.VHD | |
9 | set VHD_OverFile1=VHD\PROJECTOR_PC_over1.VHD | |
10 | set VHD_OverFile2=VHD\PROJECTOR_PC_over2.VHD | |
11 | set VHD_ParentGUID={e3ccf963-9152-11e2-ad48-829adb767c32} | |
12 | set VHD_OverGUID1={e3ccf964-9152-11e2-ad48-829adb767c32} | |
13 | set VHD_OverGUID2={e3ccf965-9152-11e2-ad48-829adb767c32} | |
14 | ||
15 | set TempFile=%~d0\VHD\diskpart.log | |
16 | - | REM Delete both over file. |
16 | + | |
17 | ||
18 | REM Delete both over file AND woops file. | |
19 | del %VHD_Drive%\%VHD_OverWoops% | |
20 | - | echo create vdisk file=%VHD_Drive%\%VHD_OverFile1% parent=%VHD_Drive%\%VHD_Parent% > %TempFile% |
20 | + | |
21 | del %VHD_Drive%\%VHD_OverFile2% | |
22 | ||
23 | echo create vdisk file=%VHD_Drive%\%VHD_OverWoops% parent=%VHD_Drive%\%VHD_Parent% > %TempFile% | |
24 | echo create vdisk file=%VHD_Drive%\%VHD_OverFile1% parent=%VHD_Drive%\%VHD_Parent% >> %TempFile% | |
25 | echo create vdisk file=%VHD_Drive%\%VHD_OverFile2% parent=%VHD_Drive%\%VHD_Parent% >> %TempFile% | |
26 | echo exit >> %TempFile% | |
27 | ||
28 | diskpart /s %TempFile% | |
29 | ||
30 | bcdedit /set %VHD_ParentGUID% device vhd=[%VHD_Drive%]\%VHD_OverWoops% | |
31 | bcdedit /set %VHD_ParentGUID% osdevice vhd=[%VHD_Drive%]\%VHD_OverWoops% | |
32 | ||
33 | bcdedit /default %VHD_OverGUID1% | |
34 | ||
35 | del %TempFile% | |
36 | echo Done. |