http://en.wikipedia.org/wiki/PunAND51 wrote:
Get list of all available hardisks? (solved)
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
maybe SetErrorMode_() will help out.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!
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)
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf