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-07-22 22:21
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » [Help] How to call a program on the CD from autoexec.bat? View 1,466 Replies 7
Original Poster Posted 2003-05-21 00:00 ·  中国 福建 厦门 教育网
中级用户
★★
Credits 299
Posts 52
Joined 2003-05-19 00:00
23-year member
UID 2218
Gender Male
Status Offline
I want to put a few lines in the autoexec.bat on a Win98 boot disk to call a program on the CD.
Floor 2 Posted 2003-05-21 00:00 ·  中国 湖北 武汉 硚口区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
First you need to set a variable. Then point it to the path where the program is located and you can call it.....
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-05-21 00:00 ·  中国 江苏 无锡 电信
高级用户
★★
Credits 616
Posts 187
Joined 2003-04-18 00:00
23-year member
UID 1598
Gender Male
Status Offline
There is a simple way:
First assign a drive letter to the CD-ROM drive, then add the path.
For example:
If you want to use KV3000.EXE on the CD-ROM
add /L:X to the end of the MSCDEX.EXE ...... line in autoexec.bat
and finally add: X:\KV3000.EXE

X can be replaced with some other letter.
This method is simple, fast, and reliable, and saves the time of searching for the drive letter.
Floor 4 Posted 2003-05-21 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The following is quoted from wglwx at 2003-5-21 6:33:01:
X can be replaced with some other letter.
This method is simple, fast, and reliable, and saves the time of searching for the drive letter.


This method is not necessarily reliable either. For example, if the system already has an X: drive, then wouldn't it fail?
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-05-21 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Yes, another way is to use FINDCD, then call %CDROM%\XXX.EXE, but with dual CD-ROM drives it becomes a bit troublesome, and at present there is still no good solution.
我的网志
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
Floor 6 Posted 2003-05-21 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The following is quoted from mys at 2003-5-21 7:21:01:
Yes, another way is to use FINDCD, then call %CDROM%\XXX.EXE, but with dual CD-ROM drives it becomes a bit troublesome, and at present there is still no good solution.


Why is it troublesome with dual CD-ROM drives or multiple CD-ROM drives? Taking the FINDCD program I modified as an example, using FINDCD 2 can put the drive letter of the second CD-ROM drive into %CDROM%.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 7 Posted 2003-05-21 00:00 ·  中国 福建 厦门 教育网
中级用户
★★
Credits 299
Posts 52
Joined 2003-05-19 00:00
23-year member
UID 2218
Gender Male
Status Offline
Many thanks, experts!
Floor 8 Posted 2003-05-21 00:00 ·  中国 黑龙江 哈尔滨 联通
高级用户
★★
Credits 830
Posts 233
Joined 2002-11-29 00:00
23-year member
UID 364
Gender Male
Status Offline
Using Z is still more convenient! There are rarely more than 20 partitions, right! This way is simple to use! w's method is too specialized! You have to know that technology should be people-oriented!
┃ \\\\//// ┃通缉:杨小邪 特点:贼丑
┃ (-●●-) ┃年龄:刚成年 性别:男
┃ \ / ┃罪名:长的丑/总想见网友
┃ \︶/ ┃犯罪事实:吓死一片~
Forum Jump: