China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 05:17
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » [Help] How to add a boot menu to execute my this batch file View 5,200 Replies 22
Original Poster Posted 2007-08-15 17:09 ·  中国 广东 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline


The above is the diagram of my system installation. Because the system I installed is really chilling, but there's really no way, it's not what I wanted.

The DOS system on drive C was installed using the command format c: /s /q.

The following is my code. The specific functions of the system recovery code haven't been added yet. Currently, the most critical thing is how to add a boot menu so that I can execute my batch file in DOS, and then call ghost.exe on drive C to restore the system. (I have already backed up the entire system)

Originally, I could do it after modifying virtual boot disks and so on, but I don't know why it can't boot on some computers. Think about it, now my drive C is already DOS, can I directly call


author:zhl@10moons.com

cls
@echo off
:startmain
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows 2000
echo 2  Restore Windows XP 32 Bit
echo 3  Restore Windows XP 64 Bit
echo 4  Restore Windows XP MCE
echo 5  Restore Windows Vista Ultimate 32 Bit
echo 6  Restore Windows Vista Home Premium 32 Bit
echo 7  Restore Windows Vista Home 32 Bit
echo 8  Restore Windows Vista Ultimate 64 Bit
echo 9  Restore Windows Vista Home Premium 64 Bit
echo 0. Exit
echo.
choice: /C:1234567890 Please choose
if errorlevel 10 goto hfexit
if errorlevel 9 goto hfvshp64
if errorlevel 8 goto hfvsu64
if errorlevel 7 goto hfvsh32
if errorlevel 6 goto hfvshp32
if errorlevel 5 goto hfvsu32
if errorlevel 4 goto hfxpmce
if errorlevel 3 goto hfxp64
if errorlevel 2 goto hfxp32
if errorlevel 1 goto hf2k
:hf2k
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows 2000 Simplified Chinese Version
echo.
echo 2  Restore Windows 2000 Traditional Chinese Version
echo.
echo 3  Restore Windows 2000 English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 4 goto startmain
if errorlevel 3 goto hf2keng
if errorlevel 2 goto hf2kcht
if errorlevel 1 goto hf2kchs
:hf2kchs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hf2kchsn
If errorlevel 1 goto hf2kchsy
:hf2kchsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hf2kchsn
cls
AB.bat
:hf2kcht
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hf2kchtn
If errorlevel 1 goto hf2kchty
:hf2kchty
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hf2kchtn
cls
AB.bat
:hf2keng
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hf2kengn
If errorlevel 1 goto hf2kengy
:hf2kengy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hf2kengn
cls
AB.bat
:hfxp32
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows xp 32bit Simplified Chinese Version
echo.
echo 2  Restore Windows xp 32bit Traditional Chinese Version
echo.
echo 3  Restore Windows xp 32bit English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 4 goto startmain
if errorlevel 3 goto hfxp32eng
if errorlevel 2 goto hfxp32cht
if errorlevel 1 goto hfxp32chs
:hfxp32chs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfxp32chsn
If errorlevel 1 goto hfxp32chsy
:hfxp32chsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfxp32chsn
cls
AB.bat
:hfxp32cht
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfxp32chtn
If errorlevel 1 goto hfxp32chty
:hfxp32chty
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfxp32chtn
cls
AB.bat
:hfxp32eng
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfxp32engn
If errorlevel 1 goto hfxp32engy
:hfxp32engy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfxp32engn
cls
AB.bat
:hfxp64
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows xp 64bit Simplified Chinese Version
echo.
echo 2  Restore Windows xp 64bit Traditional Chinese Version
echo.
echo 3  Restore Windows xp 64bit English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 4 goto startmain
if errorlevel 3 goto hfxp64eng
if errorlevel 2 goto hfxp64cht
if errorlevel 1 goto hfxp64chs
:hfxp64chs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfxp64chsn
If errorlevel 1 goto hfxp64chsy
:hfxp64chsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfxp64chsn
cls
AB.bat
:hfxp64cht
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfxp64chtn
If errorlevel 1 goto hfxp64chty
:hfxp64chty
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfxp64chtn
cls
AB.bat
:hfxp64eng
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfxp64engn
If errorlevel 1 goto hfxp64engy
:hfxp64engy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfxp64engn
cls
AB.bat
:hfxpmce
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows xp MCE Simplified Chinese Version
echo.
echo 2  Restore Windows xp MCE English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 3 goto startmain
if errorlevel 2 goto hfxpmceeng
if errorlevel 1 goto hfxpmcechs
:hfxpmcechs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfxpmcechsn
If errorlevel 1 goto hfxpmcechsy
:hfxpmcechsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfxpmcechsn
cls
AB.bat
:hfxpmceeng
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfxpmceengn
If errorlevel 1 goto hfxpmceengy
:hfxpmceengy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfxpmceengn
cls
AB.bat
:hfvsu32
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows vista ultimate 32bit Simplified Chinese Version
echo.
echo 2  Restore Windows vista ultimate 32bit Traditional Chinese Version
echo.
echo 3  Restore Windows vista ultimate 32bit English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 4 goto startmain
if errorlevel 3 goto hfvsu32eng
if errorlevel 2 goto hfvsu32cht
if errorlevel 1 goto hfvsu32chs
:hfvsu32chs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsu32chsn
If errorlevel 1 goto hfvsu32chsy
:hfvsu32chsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvsu32chsn
cls
AB.bat
:hfvsu32cht
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsu32chtn
If errorlevel 1 goto hfvsu32chty
:hfvsu32chty
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvsu32chtn
cls
AB.bat
:hfvsu32eng
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsu32engn
If errorlevel 1 goto hfvsu32engy
:hfvsu32engy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvsu32engn
cls
AB.bat
:hfvshp32
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows Vista Home Premium 32bit Simplified Chinese Version
echo.
echo 2  Restore Windows Vista Home Premium 32bit Traditional Chinese Version
echo.
echo 3  Restore Windows Vista Home Premium 32bit English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 4 goto startmain
if errorlevel 3 goto hfvshp32eng
if errorlevel 2 goto hfvshp32cht
if errorlevel 1 goto hfvshp32chs
:hfvshp32chs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvshp32chsn
If errorlevel 1 goto hfvshp32chsy
:hfvshp32chsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvshp32chsn
cls
AB.bat
:hfvshp32cht
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvshp32chtn
If errorlevel 1 goto hfvshp32chty
:hfvshp32chty
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvshp32chtn
cls
AB.bat
:hfvshp32eng
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvshp32engn
If errorlevel 1 goto hfvshp32engy
:hfvshp32engy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvshp32engn
cls
AB.bat
:hfvsh32
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows Vista Home Premium 32bit Simplified Chinese Version
echo.
echo 2  Restore Windows Vista Home Premium 32bit Traditional Chinese Version
echo.
echo 3  Restore Windows Vista Home Premium 32bit English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 4 goto startmain
if errorlevel 3 goto hfvsh32eng
if errorlevel 2 goto hfvsh32cht
if errorlevel 1 goto hfvsh32chs
:hfvsh32chs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsh32chsn
If errorlevel 1 goto hfvsh32chsy
:hfvsh32chsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvsh32chsn
cls
AB.bat
:hfvsh32cht
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsh32chtn
If errorlevel 1 goto hfvsh32chty
:hfvsh32chty
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvsh32chtn
cls
AB.bat
:hfvsh32eng
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsh32engn
If errorlevel 1 goto hfvsh32engy
:hfvsh32engy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvsh32engn
cls
AB.bat
:hfvsu64
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows vista ultimate 64bit Simplified Chinese Version
echo.
echo 2  Restore Windows vista ultimate 64bit Traditional Chinese Version
echo.
echo 3  Restore Windows vista ultimate 64bit English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 4 goto startmain
if errorlevel 3 goto hfvsu64eng
if errorlevel 2 goto hfvsu64cht
if errorlevel 1 goto hfvsu64chs
:hfvsu64chs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsu64chsn
If errorlevel 1 goto hfvsu64chsy
:hfvsu64chsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvsu64chsn
cls
AB.bat
:hfvsu64cht
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsu64chtn
If errorlevel 1 goto hfvsu64chty
:hfvsu64chty
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:15\11_VISTA_U_CHT64.gho,dst=1:11 -sure -fx
AB.bat
:hfvsu64chtn
cls
AB.bat
:hfvsu64eng
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvsu64engn
If errorlevel 1 goto hfvsu64engy
:hfvsu64engy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvsu64engn
cls
AB.bat
:hfvshp64
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo 1  Restore Windows vista ultimate 64bit Simplified Chinese Version
echo.
echo 2  Restore Windows vista ultimate 64bit Traditional Chinese Version
echo.
echo 3  Restore Windows vista ultimate 64bit English Version
echo.
echo 0 Return to previous level
echo.
choice: /C:1230 Please choose the system version to restore
if errorlevel 4 goto startmain
if errorlevel 3 goto hfvshp64eng
if errorlevel 2 goto hfvshp64cht
if errorlevel 1 goto hfvshp64chs
:hfvshp64chs
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvshp64chsn
If errorlevel 1 goto hfvshp64chsy
:hfvshp64chsy
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvshp64chsn
cls
AB.bat
:hfvshp64cht
cls
echo.
echo ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo. ┋ OneKey Ghost 10moons Technology ┋
echo. ┋ ┋
echo ┋ Powered By Feelam ┋
echo. ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
echo.
echo Note: After performing this operation, all original system data will be lost. Please back up your data in advance
echo.
echo Confirm to continue? Please choose Yes(Y) or No(N):
echo.
choice: /C:YN
If errorlevel 2 goto hfvshp64chtn
If errorlevel 1 goto hfvshp64chty
:hfvshp64chty
cls
echo Code to agree to restore (to be added)
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:hfvshp64chtn
cls
AB.bat






echo Choose D  Restore the backup image on drive D
echo.
echo Choose E  Restore the backup image on drive E
echo.
echo Choose F   Restore the backup image on drive F
echo.
echo.
echo.

choice: /C:DEF Please choose the partition where the system backup image is stored:
if errorlevel 3 goto CX
if errorlevel 2 goto BX
if errorlevel 1 goto AX

:AX
cls
echo.
echo 【Automatic Restore】
echo.
echo Restore the backup image D:\GhostXXX.gho to partition 1 (drive C) of the first hard disk
echo.
echo (Note! Drive D must be on the first hard disk. If there are multiple hard disks, please manually run Ghost for operation)
echo.
echo Drive C will be completely overwritten. Files added to drive C after making this image will be lost.。
echo.
echo Confirm to continue?
echo.
choice: /C:YN Please choose Yes(Y) or No(N):
If errorlevel 2 goto Showd
If errorlevel 1 goto Syesd
:Syesd
cls
ghost.exe -clone,mode=pload,src=1:2\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:Showd
cls
AB.bat
:BX
cls
echo.
echo 【Automatic Restore】
echo.
echo Restore the backup image E:\GhostXXX.gho to partition 1 (drive C) of the first hard disk
echo.
echo (Note! Drive E must be on the first hard disk. If there are multiple hard disks, please manually run Ghost for operation)
echo.
echo Drive C will be completely overwritten. Files added to drive C after making this image will be lost.。
echo.
echo Confirm to continue?
echo.
choice: /C:YN Please choose Yes(Y) or No(N):
If errorlevel 2 goto Showe
If errorlevel 1 goto Syese
:Syese
cls
ghost.exe -clone,mode=pload,src=1:3\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:Showe
cls
AB.bat
:CX
cls
echo.
echo 【Automatic Restore】
echo.
echo Restore the backup image F:\GhostXXX.gho to partition 1 (drive C) of the first hard disk
echo.
echo (Note! Drive F must be on the first hard disk. If there are multiple hard disks, please manually run Ghost for operation)
echo.
echo Drive C will be completely overwritten. Files added to drive C after making this image will be lost.。
echo.
echo Confirm to continue?
echo.
choice: /C:YN Please choose Yes(Y) or No(N):
If errorlevel 2 goto Showf
If errorlevel 1 goto Syesf
:Syesf
cls
ghost.exe -clone,mode=pload,src=1:4\GhostXXX.gho:1,dst=1:1 -sure -crcignore -fro -rb
AB.bat
:Showf
cls
AB.bat



[ Last edited by feelam on 2007-8-15 at 05:28 PM ]
Floor 2 Posted 2007-08-15 18:06 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
What a complete collection of MS systems.
Windows 一键还原
http://www.yjhy.com
Floor 3 Posted 2007-08-15 18:09 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
I didn't understand the relationship between the opening picture and the following batch processing. It seems that the batch processing is all about restoring from 1:2 to 1:1.
Windows 一键还原
http://www.yjhy.com
Floor 4 Posted 2007-08-15 20:30 ·  中国 广东 惠州 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
Originally posted by lianjiang2004 at 2007-8-15 06:09 PM:
I don't understand the relationship between the initial diagram and the following batch processing. Looking at the batch processing, it's all restoring from 1:2 to 1:1.



Then it means you didn't even read what I said. Hehe

I said that I haven't added the function code to restore the system yet

Now the most important thing is to trouble you to see how to add this to the boot menu to execute instead of working on the code :cool:
Floor 5 Posted 2007-08-15 21:37 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Since it's not finished, there's no need to list a long batch script to distract attention, heh. Just making the requirements clear is enough. If C:\ has DOS as you said, then just add the batch script to autoexec.bat directly or call it with it. To be honest, for your usage environment, since the description is unclear, it's still not very clear.
Windows 一键还原
http://www.yjhy.com
Floor 6 Posted 2007-08-15 22:20 ·  中国 广东 惠州 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
Originally posted by lianjiang2004 at 2007-8-15 09:37 PM:
Since it's not finished, there's no need to list a long batch script, which distracts attention, heh.
Just make the requirements clear enough.
If there is DOS in C:\ as you said, then just add the batch script...


Hehe. First of all, thank you.
Is it just to directly add in autoexec.bat
@echo off
*.bat my Bat file name

Is that all?

PS: My environment is really difficult to figure out if I haven't really been in contact.
Originally I used someone else's virtual DOS boot disk modifications, and it could be called. But today I tried it, and some machines can use it while some can't. I can't figure out why. I thought: In DOS, usually a temporary drive is allocated, maybe it conflicts with so many of my drive letters.

[ Last edited by feelam on 2007-8-15 at 10:24 PM ]
Floor 7 Posted 2007-08-15 22:27 ·  中国 广东 惠州 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
Actually, the functions I want to implement are:
1. My system has been installed as shown in the figure / the ones behind can be temporarily ignored. It is to install another language version in the same partition after installing the first round of the system
2. All systems have respectively backed up the corresponding GHO files in DST=1:15
3. Now I just want to make a menu and add it to the boot menu of the system
4. Then according to what has been specified in the code (for example, the code I provided above), after selection, it can directly restore the specified GHO file in the code to the partition
Floor 8 Posted 2007-08-15 22:30 ·  中国 广东 惠州 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
Attach my demonstration code in CMD mode. Probably you will be clearer about what I mean.
Attachments
Finish.rar (1.37 KiB, Downloads: 11)
Floor 9 Posted 2007-08-16 06:52 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Can this be understood as: The first partition, that is, the DOS partition, already exists and will not be affected by other systems installed later. The 15th partition is also existing and stores the system backup files. There is one point that is unclear, how do you install other systems? Can all these systems work? Which are primary partitions? Which are logical partitions? Obviously, the partition where the system is located requires a primary partition. Of course, you can also install another system on one system, but then these two systems will not be independent and will affect each other. For batch processing operation, yes, as you said, just add in autoexec.bat: @echo off a.bat. There may also be possible solutions, such as adding the batch processing to the boot img, having CD-ROM boot, and performing restoration. Or choose to install grub4dos into the boot options/mbr, etc.
Windows 一键还原
http://www.yjhy.com
Floor 10 Posted 2007-08-16 09:05 ·  中国 广东 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
Yes, the first partition is already a DOS partition.

First round: 1_Dos → 2_Win2k_Eng → 3_Xp_Eng32 → 4_Xp_Chs32 → 5_Xp_Cht32 → 6_XpMce_Eng → 7_Vista_u_Eng32 → 8_Vista_u_Chs32 → 9_Vista_u_Cht32 → 10_Vista_hp_Chs32 → 11_Vista_u_Chs64 → 12_Vista_hp_Chs64 → Backup "1-12"

Second round: 2_Win2k_Chs → 3_Xp_Eng64 → 6_XpMce_Chs → 7_Vista_h_Eng32 → 8_Vista_h_Chs32 → 9_Vista_h_Cht32 → 10_Vista_hp_Cht32 → 11_Vista_u_Cht64 → 12_Vista_hp_Cht64 → Backup "2, 3, 6, 7, 8, 9, 10, 11, 12" → Restore 1_Dos (because installing VISTA will write to the MBR)

Third round: 2_Win2k_Cht → 10_Vista_hp_Eng → 11_Vista_u_Eng64 → 12_Vista_hp_Eng64 → Backup "2, 10, 11, 12" → Restore 1_Dos (because installing VISTA will write to the MBR)
Floor 11 Posted 2007-08-16 09:41 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Could it be that you work at Microsoft? You need so many systems.

It's really magnificent!!!

[ Last edited by lianjiang2004 on 2007-8-16 at 09:43 AM ]
Windows 一键还原
http://www.yjhy.com
Floor 12 Posted 2007-08-16 09:57 ·  中国 广东 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
Hehe, trouble the expert can help me solve this problem as soon as possible. I need to use it on Saturday. :(
I'm also trying hard to search through posts
Floor 13 Posted 2007-08-16 10:15 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
For batch processing operation, yes, as you said, just add in autoexec.bat
@echo off
a.bat
------------------------------
The problem is, I suspect whether these systems can be installed as you wish, he he.
Windows 一键还原
http://www.yjhy.com
Floor 14 Posted 2007-08-16 11:10 ·  中国 广东 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
...The system has already been installed... All can run...

The key is that after adding it to autoexec.bat, it still can't run.
bat command

[ Last edited by feelam on 2007-8-16 at 11:13 AM ]
Floor 15 Posted 2007-08-16 11:27 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Remove the echo off and see which line has an error.
Windows 一键还原
http://www.yjhy.com
Forum Jump: