Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Diskette
Message
From
02/03/2000 19:18:56
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00340916
Message ID:
00340964
Views:
28
>>what instruction have i to use in vfp5.0 to verify if a diskette its inside the floppy unit of the computer??
>>thanks
>
>DISKSPACE("A:") returns -1 if no diskette. But I've heard that there is a problem with this on NT.

Yep; it can be coded around with the API, but using the IsReady() method of the Drive subobject of Scripting.FileSystemObject is cleaner.
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