中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 07:21
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » [Help] I want to make a boot disk with prompts, please advise....
Printable Version  578 / 4
Floor1 xiaoyuan0417 Posted 2004-02-08 00:00
初级用户 Posts 3 Credits 119
I want to set up the following prompts in the boot disk's autoexec.bat:

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

After the above prompt appears, if 1 is selected, start Ghost to restore the system, and after it is finished, show the following prompt again:

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


How can the above prompts be implemented? Please advise, experts.
Floor2 gmy Posted 2004-02-08 00:00
版主 Posts 392 Credits 1,113
I suggest using WBAT (batch enhancement tool)
Floor3 gaojie Posted 2004-02-09 00:00
中级用户 Posts 31 Credits 224
Floor4 SNOWOLF Posted 2004-02-09 00:00
中级用户 Posts 88 Credits 483
Write it in the CONFIG。SYS file and the AUTOEXEC。BAT file

===========================
config.sys
----------------------

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





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

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

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

:1
ghost
goto end

:2
restart.com
goto end

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

If you have any questions, you can chat with me QQ:170759292
Floor5 MYS Posted 2004-02-10 00:00
元老会员 Posts 1,637 Credits 5,170 From 广东佛山
You can also use BE in the NU tools
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023