|
cyradg
初级用户
 
积分 78
发帖 17
注册 2005-11-18
状态 离线
|
『楼 主』:
如何用findcd查找正确的CD盘符???
使用 LLM 解释/回答一下
就是一台机器上装有多个CD-ROM(或DVD-ROM),findcd好象只能查找主CD-ROM,如果光盘放在副CD-ROM里,就找不到了,请问如何才能找到光盘所在的正确盘符?如:光盘放在E盘里,盘符就是E,放在F盘里,盘符就是F,谢谢。
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.
|
|
2006-8-22 11:32 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
不加参数或用findcd 1是表示第1个光驱;第2个光驱则应使用findcd 2,以此类推。
Not adding parameters or using findcd 1 means the first optical drive; the second optical drive should use findcd 2, and so on.
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2006-8-22 11:38 |
|
|
cyradg
初级用户
 
积分 78
发帖 17
注册 2005-11-18
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
谢谢楼上的,我有两个光驱,当然现在我一般放第一个,但是如果放在第二个光驱里,如何使它自动正确找到,注意是指光盘所在的光驱盘符。
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.
|
|
2006-8-22 11:41 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
我上面不是已经说过应使用findcd 2来找第二个光驱的盘符吗?你试过了吗?
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?
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2006-8-22 11:50 |
|
|
cyradg
初级用户
 
积分 78
发帖 17
注册 2005-11-18
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
看来findcd是用%CDROM1%,%CDROM2%,......,全局变量来表示光驱盘符,我水平有限,下面的autoexec.bat在第一个光驱有效,在第二个光驱就无效了,请问如何在此基础上再次修改,谢谢。
@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
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
|
|
2006-8-22 14:45 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
findcd是我几年前编的,有两种表达方式:一种是用findcd [n]的方式,其中n是一个数字,表示将第n个光驱盘符显示出来并存入%CDROM%中;另一种是findcd /s的形式,是直接将所有光驱盘符存入变量中。一开始findcd只支持前者,后来我应某网友的请求加入了后者的支持。
findcd was compiled by me a few years ago. There are two expressions: one is in the form of findcd , 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.
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2006-8-22 22:03 |
|