autoexec.bat
LH SMARTDRV.EXE
LH DOSKEY.COM > NUL
LH MOUSE.COM > NUL
CLS
tw.exe
echo.
echo.
echo 按 1 备份,按 2 还原,按 3 退出
echo.
choice /c:123 请选择:
if errorlevel 3 goto _exit:
if errorlevel 2 goto _reco:
if errorlevel 1 goto _back:
rem ===========================================
rem 确认是否备份
:_back
choice /c:YN 再确认一次,是否备份C盘?备份请输入 Y
if errorlevel 2 goto _end:
if errorlevel 1 goto _agree_back:
rem 备份并重新启动
:_agree_back
tw/q
ghost -clone,mode=pdump,src=1:1,dst=c:\backup.gho -sure -rb -Z1
goto _end
rem ===========================================
rem ===========================================
rem 确认是否恢复
:_reco
choice /c:YN 再确认一次,是否恢复C盘?恢复请输入 Y
if errorlevel 2 goto _end:
if errorlevel 1 goto _agree_reco:
rem 恢复并重新启动
:_agree_reco
IF NOT EXIST c:\backup.GHO GOTO ERROR
tw/q
ghost -clone,mode=pload,src=c:\backup.gho:1,dst=1:1 -sure -rb
goto _end
rem ===========================================
rem ===========================================
rem 退出
:_exit
goto _end
rem ===========================================