Need help ide/sata dvd drive

March 11, 2010 at 08:22:52
Specs: dos
Hi
Maybe someone can help me.

I have 2 cd drive x and y.

I would like dos to check which drive the
cd is in x or y without giving me
"abort, retry, fail" message and
if exist x:\nul go to found <--- does not
seem to work.

Please advice and thanks.

==============================

Here is my config.sys

[menu]
menuitem=GHOST, Norton Ghost
menuitem=AUTO, Auto Ghost winxp2 back to C drive
menuitem=ADDS, Acronis Disk Director Suite 10.0.2160
menuitem=BOOTM, Boot Magic
menuitem=DOS, Dos...
menudefault=GHOST
menucolor=11,0

[GHOST]
[AUTO]
[ADDS]
[BOOTM]
[DOS]


[common]
DEVICE=HIMEM.SYS /NUMHANDLES=128 /TESTMEM:OFF /Q
dos=HIGH,UMB
BUFFERS=10,0
FILES=30
LASTDRIVE=Z
FCBS=1,0
STACKS=0,0
BREAK=ON


DEVICEHIGH=GCDROM.SYS /D:SATA0 /C0
DEVICEHIGH=GCDROM.SYS /D:SATA1 /C1
DEVICEHIGH=GCDROM.SYS /D:SATA2 /C2
DEVICEHIGH =OAKCDROM.SYS /D:IDE-CD

here is my autoexec.bat

@echo off
SET TZ=GHO+08:00
echo Loading cdrom driver...
MSCDEX /D:IDE-CD /D:SATA0 /D:SATA1 /D:SATA2 /L:x


echo Loading smartdrv ...
smartdrv.exe
echo Loading mouse driver...
MOUSE.COM
echo Loading doskey ...
doskey.com /insert

COMMAND.COM /f

if exist x:\nul goto Found
y:
goto quit

:Found
x:

:quit


path a:;a:\lfn


goto %config%

:GHOST
cd\ghost
ghost
cd..
goto END

:AUTO
cd\ghost
GHOST.EXE -CLONE,MODE=PLOAD,SRC=1:3\winxp2.GHO:1,DST=1:1 -RB
GHOST.EXE -CLONE,MODE=PLOAD,SRC=1:4\winxp2.GHO:1,DST=1:1 -RB
GHOST.EXE -CLONE,MODE=PLOAD,SRC=1:5\winxp2.GHO:1,DST=1:1 -RB

GHOST.EXE -CLONE,MODE=PLOAD,SRC=e\winxp2.GHO:1,DST=1:1 -RB
GHOST.EXE -CLONE,MODE=PLOAD,SRC=f\winxp2.GHO:1,DST=1:1 -RB
GHOST.EXE -CLONE,MODE=PLOAD,SRC=g\winxp2.GHO:1,DST=1:1 -RB
cd..
goto END

:ADDS
cd\pm
adds
cd..
goto DOS

:BOOTM
cd\bm
pqboot
pause
cd..
goto DOS

:DOS
cls
goto END

:END
dir/w


See More: Need help ide/sata dvd drive

Report •

#1
March 14, 2010 at 05:54:44
I don't believe it's possible. Maybe though the clever use of CTTY? (Assuming your version of DOS has the command.)

Regardless, moving to the Disk Operating System Forum.


Report •

#2
March 14, 2010 at 07:00:34
... I am not sure what you mean(?)

MSCDEX /D:IDE-CD /D:SATA0 /D:SATA1 /D:SATA2 /L:X

... "/L:X" switch designates X: as the cdrom drive ...please explain


.

... Posting is provided "AS IS" with no warranties
http://img36.imageshack.us/img36/62...
Grrrr... ...im


Report •

#3
March 14, 2010 at 13:28:10
Check into the command FINDCD.EXE. It's on most 98 bootdisks. It tests for the existence of the file \win98\setup.exe" on the cd's:

http://members.ozemail.com.au/~ross...

and returns the cdrom drive letter, if that file exists. You can edit findcd.exe to look for any other file:

http://flyakite.msfn.org/98se.htm

You're not really green until you're soylent green.


Report •

Related Solutions

#4
March 15, 2010 at 12:56:18
... findcd.exe is renamed "DETECTCD.EXE"

... available from here >> bootdisk.zip and has been altered (by them) to suit >> picture


.

... Posting is provided "AS IS" with no warranties
http://img36.imageshack.us/img36/62...
Grrrr... ...im


Report •

#5
March 15, 2010 at 17:59:15
Dear All,
Thank you for all of the suggestions.

I finally use this utility FINDCD v1.02
http://www.nu2.nu/utils/

That enable to figure out which of the two cd drive ( x or y) I
put the media in to load the program.

=================================
Here is the revised config

[menu]
menuitem=GHOST, Norton Ghost
menuitem=AUTO, Auto Ghost winxp2 back to C drive
menuitem=ADDS, Acronis Disk Director Suite 10.0.2160
menuitem=BOOTM, Boot Magic
menuitem=DOS, Dos...
menudefault=GHOST
menucolor=11,0

[GHOST]
[AUTO]
[ADDS]
[BOOTM]
[DOS]


[common]
DEVICE=HIMEM.SYS /NUMHANDLES=128 /TESTMEM:OFF /Q
dos=HIGH,UMB
BUFFERS=10,0
FILES=30
LASTDRIVE=Z
FCBS=1,0
STACKS=0,0
BREAK=ON


DEVICEHIGH=GCDROM.SYS /D:SATA-CD /C0
DEVICEHIGH =OAKCDROM.SYS /D:IDE-CD

=================================
Here is the revised autoexec.bat

@echo off
SET TZ=GHO+08:00
echo Loading cdrom driver...
MSCDEX /D:IDE-CD /D:SATA-CD /L:x

echo Loading smartdrv ...
smartdrv.exe
echo Loading mouse driver...
MOUSE.COM
echo Loading doskey ...
doskey.com /insert

set cddrv=
findcd -e -r
if errorlevel 23 set cddrv=x
if errorlevel 24 set cddrv=y
echo CD with media on drive %cddrv%:
%cddrv%:

path a:;a:\lfn;%cddrv%:\

goto %config%

:GHOST
cd\ghost
ghost
cd..
goto END

:AUTO
cd\ghost
GHOST.EXE -CLONE,MODE=PLOAD,SRC=1:3\winxp2.GHO:1,DST=1:1 -RB
GHOST.EXE -CLONE,MODE=PLOAD,SRC=1:4\winxp2.GHO:1,DST=1:1 -RB
GHOST.EXE -CLONE,MODE=PLOAD,SRC=1:5\winxp2.GHO:1,DST=1:1 -RB

cd..
goto END

:ADDS
cd\pm
adds
cd..
goto DOS

:BOOTM
cd\bm
pqboot
pause
cd..
goto DOS

:DOS
cls
goto END

:END
dir/w



Report •

Ask Question