|
@ECHO OFF
ctmouse
:menu
tw /np /nh /n3
cls
wbat box @autoexec.bat:_ghost_menu
if errorlevel 8 goto _dos
if errorlevel 7 goto _manual
if errorlevel 6 goto _xpm_fdisk_ghost
if errorlevel 5 goto _2k_fdisk_ghost
if errorlevel 4 goto _xp_fdisk_ghost
if errorlevel 3 goto _xpm_ghost
if errorlevel 2 goto _2k_ghost
if errorlevel 1 goto _xp_ghost
goto _exit
:_xp_ghost
tw /q
ghost.exe -clone,mode=prestore,src=xp_0106A.GHO:1,dst=2:1 -sure
echo Ghost complete, press any key reboot ....
pause
restart
goto menu
:_xp_fdisk_ghost
tw /q
gdisk 2 /mbr /wipe /y
gdisk 2 /cre /pri /for /q /sz:15500 /v:system /y
gdisk 2 /cre /ext
gdisk 2 /cre /log /sz:25P /for /q /v:D /y
gdisk 2 /cre /log /sz:25P /for /q /v:E /y
gdisk 2 /cre /log /for /q /v:Backup /y
gdisk 2 /act /p:1
ghost.exe -clone,mode=prestore,src=xp_0106A.GHO:1,dst=2:1 -sure
echo Ghost complete, press any key reboot ....
pause
restart
goto menu
:_2k_ghost
tw /q
ghost.exe -clone,mode=prestore,src=2k_0901.gho:1,dst=2:1 -sure
echo Ghost complete, press any key reboot ....
pause
restart
goto menu
:_2k_fdisk_ghost
tw /q
gdisk 2 /mbr /wipe /y
gdisk 2 /cre /pri /for /q /sz:15500 /v:system /y
gdisk 2 /cre /ext
gdisk 2 /cre /log /sz:25P /for /q /v:D /y
gdisk 2 /cre /log /sz:25P /for /q /v:E /y
gdisk 2 /cre /log /for /q /v:Backup /y
gdisk 2 /act /p:1
ghost.exe -clone,mode=prestore,src=2k_0901.gho:1,dst=2:1 -sure
echo Ghost complete, press any key reboot ....
pause
restart
goto menu
:_xpm_ghost
tw /q
ghost.exe -clone,mode=prestore,src=xpec0113.gho:1,dst=2:1 -sure
echo Ghost complete, press any key reboot ....
pause
restart
goto menu
:_xpm_fdisk_ghost
tw /q
gdisk 2 /mbr /wipe /y
gdisk 2 /cre /pri /for /q /sz:15500 /v:system /y
gdisk 2 /cre /ext
gdisk 2 /cre /log /sz:25P /for /q /v:D /y
gdisk 2 /cre /log /sz:25P /for /q /v:E /y
gdisk 2 /cre /log /for /q /v:Backup /y
gdisk 2 /act /p:1
ghost.exe -clone,mode=prestore,src=xpec0113.gho:1,dst=2:1 -sure
echo Ghost complete, press any key reboot ....
pause
restart
goto menu
:_manual
tw /q
ghost.exe
goto menu
:_dos
tw /q
goto _exit
:_reboot
restart.com
goto menu
:_ghost_menu " Windows Ghost安装盘 " [x]
[ 1. 安装XP中文版到硬盘第一个分区]
[ 2. 安装Win2000中文专业版到硬盘第一个分区 ]
[ 3. 安装XP多国语言到硬盘第一个分区]
[ 4. 自动重新分区并安装xp到硬盘第一个分区 ]
[ 5. 自动重新分区并安装2000到硬盘第一个分区 ]
[ 6. 自动重新分区并安装XP多语言到硬盘第一分区]
[ 7. 进入Ghost 8.0手工执行备份或克隆操作 ]
[ 8. 返回dos命令行提示状态 ]
::
goto _exit
:_exit
前几年用的硬盘ghost批处理,可以参考, 普通ide硬盘启动对ghost和gdisk来说始终是disk 1, 移动硬盘启动就不知道了,可以参考 |
|