中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-07-25 11:05
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » 如何在掉入主菜单后,等待10秒,没按键就goto _ghostfull 查看 834 回复 2
楼 主 如何在掉入主菜单后,等待10秒,没按键就goto _ghostfull 发表于 2006-03-30 19:04 ·  中国 广东 珠海 电信
初级用户
积分 70
发帖 24
注册 2005-09-20 00:43
20年会员
UID 42654
状态 离线
如何在掉入主菜单后,等待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 ]
2 发表于 2006-03-31 02:09 ·  中国 北京 大兴区 联通
初级用户
★★
积分 185
发帖 82
注册 2005-08-12 13:41
20年会员
UID 41586
性别 男
状态 离线
@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. 备份客户机 全盘 ]
3 发表于 2006-03-31 02:23 ·  中国 广东 珠海 电信
初级用户
积分 70
发帖 24
注册 2005-09-20 00:43
20年会员
UID 42654
状态 离线
谢谢朋友
论坛跳转: