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 17:11
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » You can specify the drive letter, but what if there are two optical drives??? View 2,767 Replies 1
Original Poster Posted 2010-04-08 15:27 ·  中国 广东 广州 电信
初级用户
Credits 88
Posts 42
Joined 2006-05-05 16:26
20-year member
UID 54979
Gender Male
Status Offline
Can specify the drive letter, but when there are two optical drives??? When booting from the second optical drive, the specified drive cannot be found???
Floor 2 Posted 2011-01-13 14:48 ·  中国 广东 深圳 电信
初级用户
★★
Credits 201
Posts 92
Joined 2005-12-28 17:44
20-year member
UID 48072
Status Offline
@cdrom.bat
@smartdrv.exe
@mouse.com
:top
set cdrom=
findcd 0 >nul
if "%cdrom%"=="0" goto Nocd
set n=%cdrom%+1
set cdrom=

:loop
set n=%n%-1 >nul
if "%n%"=="0" goto NOCD
set cdrom=
findcd %n% >nul
dready %cdrom%
if errorlevel 255 goto loop
if errorlevel 2 goto loop

:ok?
if not exist %cdrom%\boot\imgs\ghost.exe goto loop
:OK
ECHO Current CDROM is %CDROM%
GOTO END

:nocd
echo No CD_ROM Or all CD_ROM are not ready!

:end
set m=
set n=
@path=A;path=%CDROM%:;path=%CDROM%:\boot\imgs
ghost -clone,mode=pload,src=%cdrom%\seco\winos.gho:1,dst=1:1 -sure -rb
Forum Jump: