![]() |
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-09-06 07:00 |
47,812 topics / 349,914 posts / today 0 new / 48,268 members |
| DOS启动盘 & LOGO技术 (启动盘室) » findcd can't get the variable... |
| Printable Version 1,376 / 8 |
| Floor1 dewin | Posted 2003-05-08 00:00 |
| 初级用户 Posts 26 Credits 181 | |
|
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. |
|
| Floor2 kevinet | Posted 2003-05-08 00:00 |
| 中级用户 Posts 47 Credits 354 | |
|
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. |
|
| Floor3 dewin | Posted 2003-05-08 00:00 |
| 初级用户 Posts 26 Credits 181 | |
|
I got it working. No need for that nset.
|
|
| Floor4 Wengier | Posted 2003-05-08 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
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. |
|
| Floor5 dewin | Posted 2003-05-09 00:00 |
| 初级用户 Posts 26 Credits 181 | |
|
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%\ |
|
| Floor6 Wengier | Posted 2003-05-09 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
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. |
|
| Floor7 dewin | Posted 2003-05-09 00:00 |
| 初级用户 Posts 26 Credits 181 | |
|
Doesn't work.
Inside vmare, it says it's c. But my CD-ROM drive letter is d. |
|
| Floor8 Wengier | Posted 2003-05-09 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Then maybe VMWare has a BUG. Please try a real environment.
|
|
| Floor9 dewin | Posted 2003-05-09 00:00 |
| 初级用户 Posts 26 Credits 181 | |
|
Forget it. I'll still use the original one.
Because there may be multiple cdroms. So I use find.com -e -r |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |