@Echo OFF
set EXPAND=YES
SET DIRCMD=/O:N
cls
set temp=e:\
set tmo=e:\
path=c:\
if "%config%"=="Back" GOTO Back
if "%config%"=="Clone" GOTO Clone
if "%config%"=="NO" GOTO QUIT
:Back
if not exist f:\winxp.gho GOTO NOT
f:\ghost\ghost -clone,mode=pload,src=1:4\winxp.gho:1,dst=1:1 -sure -rb
:Clone
f:\ghost\ghost -clone,mode=pdump,src=1:1,dst=1:4\winxp.gho -z1 -sure -rb
:NOT
echo ERROR! Image file did not exist!
echo.
:QUIT
再打开config.sys(系统隐藏文件)修改如下:
[menu]
menuitem=Back,C: From Image
menuitem=Clone,C: To Image
menuitem=NO,DOS Prompt
menudefault=Back,30
menucolor=7,0
[Back]
[Clone]
[NO]
[COMMON]
fiels=60
buffers=20
stacks=9,256
lastdrive=z