autoexec.bat
echo off
tw/np>nul
m
---------------------------------------
config.sys
device=himem.sys
dos=high,umb
------------------------------------------
W.BAT
wbat $w box (+white on +blue) @m.bat:%1 %2 %3 %4
------------------------------------------
m.bat
@echo off
cls
:a
call w w
goto %?%
:w "备份系统 GHOST"
[1自动备份还原到最后分区]
:1
call w z
if not %?%*==2* goto a
for /l %%i in (1,1,6) do for /l %%j in (1,1,10) do for /f "tokens=3" %%k in ('find /c " %%i:%%j" GHSTSTAT.TXT') do IF %%k GTR 0 SET LastP=%%i:%%j
ghost -clone,mode=pdump,src=1:1,dst=%LastP%:\c.gho -z5 -fx -sure
goto a
:z "自动备份恢复系统到最后分区"
[取消] [确定]