home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / checkcd / checkcd.english.doc < prev    next >
Text File  |  1977-12-31  |  1KB  |  39 lines

  1. --------------------------------------------------------------------------
  2.                     CheckCD 1.0 © Ricardo Martinez 1994
  3. --------------------------------------------------------------------------
  4.  
  5. I have written this little program because I own an external CD-ROM drive
  6. that is not always connected to my Amiga and I was bored of manually
  7. mounting CD0: when I want to use my CD-ROM.
  8.  
  9. This program checks if a defined SCSI device is or not a CD-ROM drive
  10. returning a return code that you can use in a script.
  11.  
  12. Script example:
  13.  
  14. ;---------- cut ----------
  15.  
  16. CheckCD scsi.device UNIT 3
  17. If NOT WARN
  18.    Mount CD0:
  19. EndIf
  20.  
  21. ;---------- cut ----------
  22.  
  23. It returns 0 (OK) if the device is a CD-ROM drive, 5 (WARN) if this is a
  24. SCSI device but not a CD-ROM, and 20 (FAIL) in any other case.
  25.  
  26. Command template is "DEVICE,UNIT/N". DEVICE is the device name of your SCSI
  27. controller and UNIT the unit number of the device you want to check.
  28.  
  29.  
  30. CheckCD needs AmigaOS 2.04 or higher!!!
  31.  
  32.  
  33. Contact with me at:
  34.  
  35.   E-Mail rmartinez@mips.mazanet.es
  36.  FidoNET 2:341/28.5
  37. AmigaNET 39:192/2.5
  38.  
  39.