![]() |
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-18 08:48 |
47,814 topics / 349,907 posts / today 0 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » How to use findcd to find the correct CD drive letter??? |
| Printable Version 2,002 / 5 |
| Floor1 cyradg | Posted 2006-08-22 11:32 |
| 初级用户 Posts 17 Credits 78 | |
|
It is that there is more than one CD-ROM (or DVD-ROM) installed on a machine. findcd seems to only be able to find the main CD-ROM. If the disc is placed in a secondary CD-ROM, it cannot be found. Then how can we find the correct drive letter where the disc is located? For example: if the disc is placed in drive E, the drive letter is E; if it is placed in drive F, the drive letter is F. Thanks.
|
|
| Floor2 Wengier | Posted 2006-08-22 11:38 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Not adding parameters or using findcd 1 means the first optical drive; the second optical drive should use findcd 2, and so on.
|
|
| Floor3 cyradg | Posted 2006-08-22 11:41 |
| 初级用户 Posts 17 Credits 78 | |
|
Thanks to the person above. I have two optical drives. Of course, I usually put it in the first one now, but if I put it in the second optical drive, how to make it automatically and correctly find the drive letter of the optical drive where the disc is located.
|
|
| Floor4 Wengier | Posted 2006-08-22 11:50 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Didn't I already say above that you should use findcd 2 to find the drive letter of the second CD-ROM? Have you tried it?
|
|
| Floor5 cyradg | Posted 2006-08-22 14:45 |
| 初级用户 Posts 17 Credits 78 | |
|
It seems that findcd uses %CDROM1%, %CDROM2%, ..., global variables to represent CD - ROM drive letters. My level is limited. The following autoexec.bat is effective for the first CD - ROM, but invalid for the second one. May I ask how to modify it again? Thank you.
@ECHO Off PROMPT $p$g LH Shsucdx.exe /D:IDE-CD /K /M:15 >NUL LH FINDCD /s >nul IF "%CDROM%"=="" GOTO no_cdrom lh a:\SMARTDRV 4096 CLS path %CDROM1%\;a:\; %CDROM1% CD\TOOLS\DOSLFN LH DOSLFN.COM CD\TOOLS LH TW.exe/NP CD\TOOLS\VC rem if not exist VC.com goto NO_FILE VC.COM GOTO EXIT :no_cdrom echo error:no_cdrom a:\ GOTO EXIT :NO_FILE ECHO ERROR:NO FOUND DM.COM! pause GOTO EXIT :EXIT |
|
| Floor6 Wengier | Posted 2006-08-22 22:03 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
findcd was compiled by me a few years ago. There are two expressions: one is in the form of findcd [n], where n is a number, indicating that the nth CD-ROM drive letter is displayed and stored in %CDROM%; the other is in the form of findcd /s, which directly stores all CD-ROM drive letters into variables. At first, findcd only supported the former, and later I added support for the latter at the request of a certain netizen.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |