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-06-25 09:00
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » (Closed) How to make the CD - ROM drive letter that the boot disk directly boots? View 2,377 Replies 6
Original Poster Posted 2002-11-14 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 137
Posts 9
Joined 2002-11-12 00:00
23-year member
UID 230
Gender Male
Status Offline
I want the boot disk to directly boot to the drive letter of the optical drive and automatically run a bat file, that is, the virtual drive letter is CDROM

[ Last edited by willsort on 2005-10-27 at 14:13 ]
Floor 2 Posted 2002-11-14 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
You can check the autoexec.bat file in the WIN98 boot disk, and you can achieve it by using the CDROM environment variable inside it.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 3 Posted 2002-11-14 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 137
Posts 9
Joined 2002-11-12 00:00
23-year member
UID 230
Gender Male
Status Offline
But I don't know how to modify the environment variables of CDROM. Can you give me some pointers?
Floor 4 Posted 2002-11-14 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
No need to modify the CDROM variable. If you boot with a WIN98 boot disk, the CDROM variable should be the drive letter of the CDROM, and you can just reference it in the batch file. For example, if you want to run A.EXE in the BIN folder on the CD, you can use %CDROM%:\BIN\A.EXE in the batch file.

It should be noted that CDROM must be in uppercase, not lowercase, otherwise the reference will not be correct.

Correctly, the above should be: %CDROM%:\BIN\A.EXE





我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 5 Posted 2002-11-14 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
If it is not the MS-DOS 7.10 boot disk that comes with Win98, you can use tools like FINDCD to find the current CD-ROM drive letter.
Wengier - 新DOS时代

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

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

Floor 6 Posted 2002-11-15 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 137
Posts 9
Joined 2002-11-12 00:00
23-year member
UID 230
Gender Male
Status Offline
I don't know which line to add for %CDROM%\*. I want to make a ghost recovery disk.

I can only get to this point:

Create g.bat
Content:
@echo off
cd h: h is my CD - ROM
ghost.exe -clone,mode=pload,src=98.GHO:1,dst=1:1 -sure -rb

Add in the 98 boot disk autoexec.bat:
copy g.bat %RAMD%:\ > NUL
Copy g.bat to the floppy disk and make an image for burning.
Boot from the burned CD - ROM to virtual A:\g and press Enter. It succeeds.

Hehe~~ The simple - minded person can only use the simple method.

Thank you two moderators :)
Floor 7 Posted 2002-11-15 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
cd h:
Change to cd %CDROM%
That's it.
As for copy a:\g.bat %RAMD%:\ >NUL, it's redundant.
Because you finally execute g.bat in the virtual A drive, not in your virtual hard disk.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Forum Jump: