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:07
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » findcd can't get the variable... View 1,329 Replies 8
Original Poster Posted 2003-05-08 00:00 ·  中国 香港
初级用户
Credits 181
Posts 26
Joined 2003-05-08 00:00
23-year member
UID 1945
Gender Male
Status Offline
I copied findcd.com and NSET into the same directory.
But why is it that when I follow what was said at http://www.cn-dos.net/newdos/doswaren.html:
FINDCD -a|NSET CDROM=$1
under the ROM-DOS7.10 boot disk in vmware gex server 2.5 it shows:

write protect error writing driver a
abort , retry ,fall?




What I want is this.
Based on the ROM-DOS7.10 boot disk, add the latest dn onto it. But dn is over 2.8m. It won't fit on drive A.
So I wanted to use xmsdsk to virtualize a Z drive. Who knew it would say it wasn't lastdriver. cow
After a lot of trouble, I found findramd.
Then I also found this part:
findramd>nul
if %ramdrive%#==# goto noram
copy command.com %ramdrive%\>nul
path=%ramdrive%\;%path%
set comspec=%ramdrive%\command.com
I also read the explanation and understood a little.

But then the problem came. How do I know the CD-ROM drive letter
...
After a lot of trouble I finally found a findcd.com...
Then after a lot of trouble I found this part too
findcd -r|nset cdrom=$1
echo %cdrom%

cow, it doesn't work...

This time it really won't work, hope everyone can help me.

After finding the CD-ROM drive letter, I want to copy *.* (everything) from the CD to that %ramdrive%.
Then run dn.
good.
Floor 2 Posted 2003-05-08 00:00 ·  中国 北京 联通
中级用户
路由狗
Credits 354
Posts 47
Joined 2003-05-06 00:00
23-year member
UID 1905
Gender Male
Status Offline
I haven't used ROM-DOS, but I believe you can also use MSCDEX.EXE, and use the /L: parameter to specify a CD-ROM drive letter. If that's what you mean, there's no need to use FINDCD, it's too troublesome!

If it really still doesn't work, I'll write a bit of code for you.
┌───────────────┒
│□□■□ □■□□ CISCO┃
│■□■■ □■■■  PRESS┃
┕┳┳━━━━━━━━━━━┳┳┛
Floor 3 Posted 2003-05-08 00:00 ·  中国 香港
初级用户
Credits 181
Posts 26
Joined 2003-05-08 00:00
23-year member
UID 1945
Gender Male
Status Offline
I got it working. No need for that nset.
Floor 4 Posted 2003-05-08 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Dewin: if you use that FINDCD.EXE I wrote myself, there won't be any problem. Download link:
http://newdos.yginfo.net/dosware/findcd.exe

Just run FINDCD directly, no need for NSET.
Wengier - 新DOS时代

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

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

Floor 5 Posted 2003-05-09 00:00 ·  中国 香港
初级用户
Credits 181
Posts 26
Joined 2003-05-08 00:00
23-year member
UID 1945
Gender Male
Status Offline
I tried it, doesn't work.
I used this part.

set cddrv=
findcd -e -a
if errorlevel 254 goto noram
if errorlevel 0 set cddrv=A:
if errorlevel 1 set cddrv=B:
if errorlevel 2 set cddrv=C:
if errorlevel 3 set cddrv=D:
if errorlevel 4 set cddrv=E:
if errorlevel 5 set cddrv=F:
if errorlevel 6 set cddrv=G:
if errorlevel 7 set cddrv=H:
if errorlevel 8 set cddrv=I:
if errorlevel 9 set cddrv=J:
if errorlevel 10 set cddrv=K:
if errorlevel 11 set cddrv=L:
if errorlevel 12 set cddrv=M:
if errorlevel 13 set cddrv=N:
if errorlevel 14 set cddrv=O:
if errorlevel 15 set cddrv=P:
if errorlevel 16 set cddrv=Q:
if errorlevel 17 set cddrv=R:
if errorlevel 18 set cddrv=S:
if errorlevel 19 set cddrv=T:
if errorlevel 20 set cddrv=U:
if errorlevel 21 set cddrv=V:
if errorlevel 22 set cddrv=W:
if errorlevel 23 set cddrv=X:
if errorlevel 24 set cddrv=Y:
if errorlevel 25 set cddrv=Z:
echo CDAUTRUN: The first CD-Rom is drive %cddrv%

copy %cddrv%\*.* %ramdrive%\
Floor 6 Posted 2003-05-09 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
That's not it!

Just directly run the FINDCD.EXE file I wrote (not that FINDCD.COM, but the FINDCD.EXE I wrote myself), then the current drive letter will automatically be put into the environment variable %CDROM%. And no other commands need to be used at all.


Wengier - 新DOS时代

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

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

Floor 7 Posted 2003-05-09 00:00 ·  中国 香港
初级用户
Credits 181
Posts 26
Joined 2003-05-08 00:00
23-year member
UID 1945
Gender Male
Status Offline
Doesn't work.
Inside vmare, it says it's c. But my CD-ROM drive letter is d.
Floor 8 Posted 2003-05-09 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Then maybe VMWare has a BUG. Please try a real environment.
Wengier - 新DOS时代

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

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

Floor 9 Posted 2003-05-09 00:00 ·  中国 香港
初级用户
Credits 181
Posts 26
Joined 2003-05-08 00:00
23-year member
UID 1945
Gender Male
Status Offline
Forget it. I'll still use the original one.
Because there may be multiple cdroms. So I use
find.com -e -r
Forum Jump: