|
|
我是仿照着版主做的,可是到“警告”那里的时候,不管是选“YES”还是选“NO”都会调用GHOST,这是为什么??
代码如下:
@ECHO OFF
set path=c:\;c:\pdos
rem lh pbios
lh font16
rem lh hzvio95
lh hzvio
cls
recur
call w.bat box @autoexec.bat:sc_1
if errorlevel 100 goto _end
if "%?%" == "1" goto _zidong
if "%?%" == "2" goto _beifen
goto sc1
:sc_1
***************************************************
* *
* [ 1. 自动恢复系统 ] *
* *
* [ 2. 制作系统备份 ] *
* *
***************************************************
::
:sc1
goto _zidong
:_zidong
recur
call w.bat box @autoexec.bat:sc_2
if "%?%" == "YES" goto _tongyi
if "%?% == "NO" goto _end
goto sc2
:sc_2
***************************************************
* *
* 警 告!!! *
* *
* *
* 这个操作将完全清除当前硬盘分区的所有文件。 *
* *
* 是否继续进行? *
* *
* [ YES ] [ NO ] *
* *
***************************************************
::
:sc2
goto _tongyi
:_tongyi
echo Loading...
ghost.exe -clone,mode=pload,src=c:\Recover.gho,dst=1:1 -fx -sure
recur
call w.bat box @autoexec.bat:scx_3
goto scx3
:scx_3
*****************************************************************
系统恢复完毕, 请按 "OK" 重新启动计算机。
*****************************************************************
[ OK ]
::
:scx3
goto _end
:_beifen
ghost.exe -clone,mode=pdump,src=1:1,dst=c:\Recover.gho -fx -sure -Z3-9 -SPAN
recur
call w.bat box @autoexec.bat:scx_4
goto scx4
:scx_4
*****************************************************************
系统备份完毕,请按 "OK" 重新启动计算机。
*****************************************************************
[ OK ]
::
:scx4
goto _end
:_end
c:\restart.com
echo
|
|