China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-13 08:11
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Help] I want to make a boot disk with prompts, please advise.... View 580 Replies 4
Original Poster Posted 2004-02-08 00:00 ·  中国 北京 中国科学技术信息研究所
初级用户
Credits 119
Posts 3
Joined 2004-02-07 00:00
22-year member
UID 16892
Gender Male
Status Offline
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.
Floor 2 Posted 2004-02-08 00:00 ·  中国 河北 唐山 联通
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
I suggest using WBAT (batch enhancement tool)
DOS之家 http://doshome.com 站长 葛明阳
Floor 3 Posted 2004-02-09 00:00 ·  中国 北京 263网络通信电信数据中心
中级用户
Credits 224
Posts 31
Joined 2003-09-28 00:00
22-year member
UID 10454
Gender Male
Status Offline
Floor 4 Posted 2004-02-09 00:00 ·  中国 河北 廊坊 联通
中级用户
★★
Javaing...
Credits 483
Posts 88
Joined 2003-10-19 00:00
22-year member
UID 11495
Gender Male
Status Offline
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
@_@ 行动就有收获!

QQ:170759292
Floor 5 Posted 2004-02-10 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
You can also use BE in the NU tools
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Forum Jump: