Board logo

标题: [求助]本人想作一个有应答的启动盘,请赐教.... [打印本页]

作者: xiaoyuan0417     时间: 2004-2-8 00:00    标题: [求助]本人想作一个有应答的启动盘,请赐教....

本人想在启动盘的 autoexec.bat 中设置如下应答:

====================
Press 1 to restoring the System Disk with Ghost
Press 2 to rebooting the System
====================

出现上述应答之后,如果选择1,启动 Ghost 恢复系统,完成后再出现以下应答:

====================
Press 1 to restoring the Program Disk with Ghost
Press 2 to rebooting the System
====================


如何实现上述应答,请高手赐教
[em06]
作者: gmy     时间: 2004-2-8 00:00
建议使用WBAT(批处理增强工具)
作者: gaojie     时间: 2004-2-9 00:00
choice
作者: snowolf     时间: 2004-2-9 00:00
在 CONFIG。SYS 文件 和 AUTOEXEC。BAT 文件中编写

===========================
config.sys
----------------------
[menu]
menuitem=1,Press 1 to restoring the System Disk with Ghost
menuitem=2,Press 2 to rebooting the System

[1]

[2]

----------------------------------------------------

autoexec.bat
--------------------------
@echo off

if %config%==1 goto 1
if %config%==2 goto 2

:1
ghost
goto end

:2
restart.com
goto end

:end
====================

有疑问可以找我聊 QQ:170759292

作者: mys     时间: 2004-2-10 00:00
用NU工具中的BE也可以