Page 2 of 2

Posted: Sun Apr 22, 2007 10:04 am
by Trond

Posted: Sun Apr 22, 2007 10:20 am
by Joakim Christiansen
The procedure is great and I can't see why there should be any problems with it, it doesn't check if there is any disks in the diskette stations or whatever...

Posted: Sun Apr 22, 2007 8:55 pm
by nco2k
ts-soft wrote:>> YOU who recommended me (and others) not to test for floppy disks
Yes, in some situations under win9x it crashes witout a floppy inserted!
maybe SetErrorMode_() will help out.

Code: Select all

SetErrorMode_(#SEM_FAILCRITICALERRORS)

For Ascii = 'A' To 'Z'
  
  Drive.s = Chr(Ascii)+":"
  If GetDriveType_(Drive) = #DRIVE_FIXED
    
    Debug Drive+" is a hard drive"
    
  EndIf
  
Next

SetErrorMode_(0)
c ya,
nco2k