|  | 
| 嘿嘿,研究了一下午,搞定了。不得不说纯DOS下太烦了,变量不能运算。 
 tw /ns /np>nulcls
 echo off
 echo ==============================================================================
 echo   1-手动运行GHOST(推荐)
 echo ==============================================================================
 echo   2-强烈注意,在克隆前要进行数据备份,选此项后会立即将镜像克隆到第一硬盘第一
 echo     分区,原有数据都会丢失;对于双硬盘和笔记本电脑不建议选用此项!
 echo ==============================================================================
 echo   3-退出到DOS
 echo ==============================================================================
 choice /C:123 "请输入你的选择:"
 if errorlevel 3 goto 3
 if errorlevel 2 goto 2
 if errorlevel 1 goto 1
 
 :1
 goto manualghost
 
 :2
 goto autoghost
 
 :3
 goto end
 
 :autoghost
 ghost -dd
 find /C "UBOOT" GHSTSTAT.TXT|lmod /L* [$3]|lmod set usb=[]>a.bat
 call a.bat
 
 if %usb% == 5 ghost.exe -clone,mode=prestore,src=1:1\xpl~1\utool\system.ucd:1,dst=2:1 -sure -fx -rb
 
 if %usb% == 0 ghost.exe -clone,mode=prestore,src=2:1\xpl~1\utool\system.ucd:1,dst=1:1 -forceusb -sure -fx -rb
 
 if errorlevel 1 ghost.exe -clone,mode=prestore,src=3:1\xpl~1\utool\system.ucd:1,dst=1:1 -sure -fx -rb
 
 if errorlevel 1 ghost.exe -clone,mode=prestore,src=4:1\xpl~1\utool\system.ucd:1,dst=1:1 -sure -fx -rb
 
 goto end
 
 :manualghost
 ctmouse >nul
 ghost.exe
 goto end
 
 :end
 | 
 |