|
|
楼主 |
发表于 2007-3-7 17:11:41
|
显示全部楼层
这个是我写的,大家帮看一下有什么问题.
SET COMSPEC=B:\command.com
SET PATH=B:\;C:\DOS;E:\DN;E:\UTILITY;F:\;F:\GHOST
@ECHO OFF
CLS
GOTO MENU
:MENU
ECHO.
ECHO.-=-=-=please choice service you want=-=-=-=-=
ECHO.
ECHO. 1 one key backup system
ECHO.
ECHO. 2 one key restore system
ECHO.
ECHO. 3 reture dos memu
ECHO.
ECHO. 4 exit and reboot you system
ECHO.
CHOICE /c:1234 /t:3,30 please choice the service number:
@IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 GOTO BF (这几行在freedos不能实现)
@IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 GOTO HF
@IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 GOTO DOS
@IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 GOTO RESTART
:BF
f:
cd ghost
smartdrv.exe>nul
ghost.exe -clone,mode=pdump,src=1:1,dst=1:4\ghost\system.gho -sure -fx
GOTO memu
:HF
f:
cd ghost
smartdrv.exe>nul
ghost.exe -clone,mode=pload,src=1:4\ghost\system.gho:1,dst=1:1 -sure -fx
GOTO menu
:DOS
c:
goto end
:restart
f:
cd ghost
pause
Restart.com
:end
请帮忙指正! |
|