Board logo

标题: 如何在掉入主菜单后,等待10秒,没按键就goto _ghostfull [打印本页]

作者: newice     时间: 2006-3-30 19:04    标题: 如何在掉入主菜单后,等待10秒,没按键就goto _ghostfull
如何在掉入主菜单后,等待10秒,没按键就goto _ghostfull


@echo off
:_top
call w.bat box @menu.BAT:sc_1
if errorlevel 100 goto _dos
if "%?%" == "1" goto _ghostfull
if "%?%" == "2" goto _ghostc
if "%?%" == "3" goto _ghost
if "%?%" == "4" goto _ghostbakc
if "%?%" == "5" goto _ghostbakfull

goto sc1
:sc_1






::
:sc1

goto _end

:_ghostfull
ghost -clone,mode=restore,src=@MCICE,dst=1 -sure -rb
goto _TOP

:_ghostc
ghost -clone,mode=prestore,src=@MCICE,dst=1:1 -sure -rb
goto _TOP



:_ghost
ghost -rb
goto _TOP


:_ghostbakc
ghost -clone,dst=@MCICE,src=1:1 -sure -rb
goto _TOP


:_ghostbakfull
ghost -clone,dst=@MCICE,src=1 -sure -rb
goto _TOP


:_dos
cls
a:

:_end

Last edited by newice on 2006-3-30 at 19:07 ]

作者: floor     时间: 2006-3-31 02:09
@echo off
:_top
rem 改动下面一句即可
call w.bat box @menu.BAT:sc_1 #1,10
if errorlevel 100 goto _dos
if "%?%" == "1" goto _ghostfull
if "%?%" == "2" goto _ghostc
if "%?%" == "3" goto _ghost
if "%?%" == "4" goto _ghostbakc
if "%?%" == "5" goto _ghostbakfull

goto sc1
:sc_1
[1. 全盘还原 ]
[2. 还原到 C 盘 ]
[3. 手动GHOST ]
[4. 备份客户机 C 盘 ]
[5. 备份客户机 全盘 ]

作者: newice     时间: 2006-3-31 02:23
谢谢朋友