-
Notifications
You must be signed in to change notification settings - Fork 0
/
AAA-CI-Cohalescer-MakerX.cmd
50 lines (40 loc) · 1.44 KB
/
AAA-CI-Cohalescer-MakerX.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
cls
echo //// ZEE / __ ______ __ ______
echo /// 2016 // / / / /_/ / / / / ___/
echo // AAA-Sys-Boot-MakerX GUID /// / / / /--/ / / / / /
echo /___ phase 2/2 //// /_/ /_/__/_/ /_/ /_/
echo.
echo.
if not exist %systemdrive%\SYS\BOOT ( echo Not a AAA Boot drive... & exit /b )
if "%1"=="" ( echo no GUID supplied... & exit /b )
set aavGUID=%1
:: show parameters and ask for * to continue execution
:: show parameters and ask for * to continue execution
echo Parameters should be filled from the last operation...
echo the 1st phase should have been AAA-Sys-BootMaker...
echo.
echo Drive ____ %aavDrive%
echo Folder ___ %aavFolder%
echo File _____ %aavFile%
echo GUID _____ %aavGUID%
echo.
echo.
set /p aavTemp="Digitar '*' (asterisco) para executar... "
if NOT "%aavTemp%"=="*" exit /b
echo.
echo.
if NOT "%aavTemp%"=="*" exit /b
:: Windows7.vhd
bcdedit.exe /store %aavFile% /set %aavGUID% device vhd=[locate]\sys\Windows7.vhd
bcdedit.exe /store %aavFile% /set %aavGUID% path \Windows\system32\winload.exe
bcdedit.exe /store %aavFile% /set %aavGUID% osdevice vhd=[locate]\sys\Windows7.vhd
bcdedit.exe /store %aavFile% /set %aavGUID% systemroot \Windows
bcdedit.exe /store %aavFile% /set %aavGUID% description "Windows 7 (*)"
bcdedit.exe /store %aavFile% /displayorder %aavGUID% /addfirst
bcdedit /default %aavGUID%
:: Windows7-bak.vhd
:: WindowsX(go).vhd
:: GUB4DOS entry
echo.
echo.