Kbase P32142: How to determine if a disk is in a floppy drive or CD-ROM dr
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/07/2003 |
|
Status: Unverified
GOAL:
How to determine if a disk is in a floppy drive or CD-ROM drive?
FACT(s) (Environment):
UNIX
FACT(s) (Environment):
Windows NT 32 Intel/Windows 2000
FIX:
Use the following code to determine whether a floppy disk drive has a disk inserted into it or whether a CD-ROM drive has a CD inserted into it:
DEFINE VARIABLE cLine AS CHARACTER NO-UNDO.
INPUT THRU VALUE ('DIR A:\').
IMPORT UNFORMATTED cLine.
INPUT CLOSE.
IF cLine BEGINS "The device is not ready" THEN
DISPLAY "Nothing There".
ELSE
/* Do Your Processing Here */