|
3#

楼主 |
发表于 2004-7-23 02:22:51
|
只看该作者
[求助]哪位高手能给这个批处理解释一下?
非常感谢 Climbing 兄!!!
gcdrom.bat的内容如下:
@echo off
REM 运行天汇汉字系统
TW /np /n3 > nul
cls
recur
call w.bat box @GCDROM.BAT:sc_1
if errorlevel 100 goto _cmd
if "%?%" == "1" goto _next
if "%?%" == "2" goto _sf
if "%?%" == "3" goto _sg
if "%?%" == "4" goto _si
if "%?%" == "5" goto _cmd
goto sc1
:sc_1
※※※※※※※※※※※※※※※※※※※※※※※※※※※
※ ※
※ 全 自 动 系 统 恢 复\备 份 光 盘 ※
※ ※
※ 此光盘由汪前进制作 ※
※ 2003.8.18 ※
※ ※
※ ※
※ [1. 从光盘自动恢复系统 ] ※
※ ※
※ [2. 从硬盘自动恢复系统 ] ※
※ (d:\SYSBAK.gho) ※
※ ※
※ [3. 在D盘备份第一分区 ] ※
※ (690M分盘备份) ※
※ ※
※ [4. 在D盘备份第一分区 ] ※
※ (不 分 盘) ※
※ ※
※ [5. DOS 命 令 行 操 作 ] ※
※ ※
※※※※※※※※※※※※※※※※※※※※※※※※※※※
::
:sc1
goto _end
rem 选择本盘恢复还是换一张盘恢复
:_next
recur
call w.bat box @GCDROM.BAT:sc_2
if errorlevel 100 goto _next
if "%?%" == "1" goto _no
if "%?%" == "2" goto _huan
goto sc2
:sc_2
※※※※※※※※※※※※※※※※※※※※※※※※※※
※ ※
※ [1. 恢复本张光盘上的*.gho文件 ] ※
※ ※
※ [2. 换盘,恢复其它光盘上的*.gho文件] ※
※ ※
※※※※※※※※※※※※※※※※※※※※※※※※※※
::
:sc2
goto _end
REM 换盘自动弹出光驱,并在暂停状态
:_huan
REM 弹出光盘eject.com
EJECT.COM > nul
recur
call w.bat box @GCDROM.BAT:sc_3
goto sc3
:sc_3
~Aborted...~
光盘已经弹出,请更换光盘后,按【确定】光盘会自动进盒,并继续……
[ 确定(&O) ]
::
:sc3
REM 进盒load.exe
load.exe > nul
echo 请稍候,正在倒数计数,归零后程序继续进行!
REM 倒数计时20秒,调用wait.exe
wait 20
goto _no
REM 检测光盘镜像文件所在的位置和文件名!
:_no
echo :m_dir " 选择需要恢复的GHO文件 " [x]>%temp%\tmp.txt
dir %cdrom%\*.gho /b /s >>%temp%\tmp.txt
call w.bat list @%temp%\tmp.txt:m_dir
if errorlevel 100 goto _cmd
if "%wbat%"=="" goto _ERROR
set gfile=%wbat%
goto _txt
:_txt
recur
call w.bat box @GCDROM.BAT:sc_4
if errorlevel 100 goto _txt
if "%?%" == "1" goto _y
goto sc4
:sc_4
※※※※※※※※※※※※※※※※※※※※※※※※※※
※ ※
※ Copy disk image from CD-Rom to harddisk !!! ※
※ ※
※ 如果继续光盘上的备份或者预装文件将会 ※
※ 拷贝到第一硬盘第一分区。 ※
※ 按【确定】继续,按【取消】重新启动。 ※
※ ※
※ [确定(&O)] [取消(&C)] ※
※※※※※※※※※※※※※※※※※※※※※※※※※※
::
:sc4
goto _end
:_y
set tOK=
recur
call w.bat box @GCDROM.BAT:sc_5
if errorlevel 100 goto _end
if "%tOK%"=="OK" goto _ok
goto sc5
:sc_5
警告 !!!
This will erase all data currently on your
harddisk !!!
请确定硬盘上您建立的文档是否备份好,如果继续
将会删除C盘所有文档,不能恢复 !!!
※※※※※※※※※※※※※※※※※※※※※※※※※※
※ ※
※ 欢迎使用全自动系统恢复(预 装)备份光盘 ※
※ ※
※ ※
※※※※※※※※※※※※※※※※※※※※※※※※※※
Type uppercase "OK" to confirm this action
请输入大写“OK”并回车确认,按其它键后回车重启
[$ tOK,2]
::
:sc5
goto _end
:_ok
set tOK=
cls
TW /Q
echo Loading...
rem without -rb switch! -quiet
ghost.exe -batch -sure -afile=NUL -clone,mode=pload,src=%gfile%:1,dst=1:1
rem ,szeL
if errorlevel 1 goto _abort
TW /np /n3 > nul
EJECT.COM > nul
recur
call w.bat box @GCDROM.BAT:scx_1
goto scx1
:scx_1
*****************************************************************
Remove CD-Rom, and reboot system.
恢复系统已顺利完成,请拿出光盘后,按【确定】重新启动系统。
*****************************************************************
[ 确定(&O) ]
::
:scx1
goto _end
:_abort
TW /np /n3 > nul
EJECT.COM > nul
recur
call w.bat box @GCDROM.BAT:scx_2
goto scx2
:scx_2
*****************************************************************
~Aborted...~
硬盘恢复出现错误^O^,请联系技术人员!!!!
请拿出光盘后,按【确定】重新启动系统。
*****************************************************************
[ 确定(&O) ]
::
:scx2
goto _end
:_ERROR
EJECT.COM > nul
recur
call w.bat box @GCDROM.BAT:scx_3
goto scx3
:scx_3
*****************************************************************
~Aborted...~
你的光盘没有备份的镜像文件!! ^O^
请拿出光盘后,按【确定】重新启动系统。
*****************************************************************
[ 确定(&O) ]
::
:scx3
goto _end
:_end
RESTART.COM
SET gfile=
SET name=
echo.
:_sf
%ramd%:
ghost -clone,mode=pload,src=d:\SYSBAK.gho:1,dst=1:1, -sure
goto _off
:_sg
%ramd%:
ghost -clone,mode=pdump,src=1:1,dst=d:\SYSBAK.gho -sure -Z4 -split=690 -auto
goto _off
:_si
%ramd%:
ghost -clone,mode=pdump,src=1:1,dst=d:\SYSBAK.gho -sure -Z4
goto _off
:_cmd
cls
%ramd%:
goto _off
:_off
请问这个批处理是怎样配合Wbat.com及Wbat.ini来控制对话框的颜色的?以下是Wbat.ini的内容:
|
|