Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP : Determine whether a floppy disk is inserted or not
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00322646
Message ID:
00322970
Views:
25
>>>>Hi,
>>>>
>>>>Can VFP check whether a floppy disk is inside the drive or not?
>>>>It can be done in Foxpro 2.x using ISDISKIN.BIN
>>>>
>>>>Rgds
>>>
>>>Hi Ralf,
>>>
>>>In addition to Ed's reply, DISKSPACE("A:") will return -1 if no disk is inserted (or some other error occurs).
>>
>>Hi George,
>>
>>Is that on a Win95/98 machine? I tried it on a WinNT machine and got an NT system error that ON ERROR would not trap. Or is this what happend on Win95/98 too?
>>
>>Bill
>
>Win98 SE. I don't have an NT box to test it with. The docs don't say that there may be a problem with NT. Just that -1 is returned. It may be an issue with the ersion/SP of NT that you're running.
>
>Maybe Ed R. knows something about this.

NT 4 SP6 6 pops a messagebox with abort retry ignore. Same if you use low-level I/O. oFSO.Drives('A:').IsReady works just fine...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform