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-23 03:07
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » [Help] ◆◆◆ Looking for how to use Findcd ◆◆◆ View 910 Replies 4
Original Poster Posted 2003-06-24 00:00 ·  中国 新疆 塔城地区 电信
中级用户
★★
Credits 354
Posts 83
Joined 2003-03-23 00:00
23-year member
UID 1232
Gender Male
Status Offline
 Can one of you experts tell me how to use findcd?

 In autoexec.bat, how can I make a variable get the CD-ROM drive letter found by findcd?

  Thanks


Floor 2 Posted 2003-06-24 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Actually, FINDCD is very simple to use. Just use FINDCD/? and you can see some examples.

For example:
FINDCD
ECHO The CD-ROM drive is %CDROM%

And uses like FINDCD /S have even more features.
Wengier - 新DOS时代

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

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

Floor 3 Posted 2003-06-24 00:00 ·  中国 上海 徐汇区 电信
中级用户
★★
Credits 364
Posts 95
Joined 2003-06-15 00:00
23-year member
UID 5250
Gender Male
Status Offline
Also:
When there are multiple CD-ROM drives, how does it assign the drive letters?
Floor 4 Posted 2003-06-24 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
For example:

FINDCD 2 will assign the drive letter of the 2nd CD-ROM drive to %CDROM%; FINDCD 3 will assign the 3rd one, and so on;

If you run FINDCD /S, it will assign all CD-ROM drive letters at once, as %CDROM1%, %CDROM2%, and so on, while at that time %CDROM% will be the total number of CD-ROM drives.
Wengier - 新DOS时代

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

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

Floor 5 Posted 2003-06-24 00:00 ·  中国 上海 徐汇区 电信
中级用户
★★
Credits 364
Posts 95
Joined 2003-06-15 00:00
23-year member
UID 5250
Gender Male
Status Offline
Many thanks, moderator~~~
Forum Jump: