home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
cdrom
/
checkcd
/
checkcd.english.doc
< prev
next >
Wrap
Text File
|
1977-12-31
|
1KB
|
39 lines
--------------------------------------------------------------------------
CheckCD 1.0 © Ricardo Martinez 1994
--------------------------------------------------------------------------
I have written this little program because I own an external CD-ROM drive
that is not always connected to my Amiga and I was bored of manually
mounting CD0: when I want to use my CD-ROM.
This program checks if a defined SCSI device is or not a CD-ROM drive
returning a return code that you can use in a script.
Script example:
;---------- cut ----------
CheckCD scsi.device UNIT 3
If NOT WARN
Mount CD0:
EndIf
;---------- cut ----------
It returns 0 (OK) if the device is a CD-ROM drive, 5 (WARN) if this is a
SCSI device but not a CD-ROM, and 20 (FAIL) in any other case.
Command template is "DEVICE,UNIT/N". DEVICE is the device name of your SCSI
controller and UNIT the unit number of the device you want to check.
CheckCD needs AmigaOS 2.04 or higher!!!
Contact with me at:
E-Mail rmartinez@mips.mazanet.es
FidoNET 2:341/28.5
AmigaNET 39:192/2.5