Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP : Determine whether a floppy disk is inserted or not
Message
From
26/01/2000 01:49:00
 
 
To
26/01/2000 01:37:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00322646
Message ID:
00322651
Views:
23
>Hi,
>
>Can VFP check whether a floppy disk is inside the drive or not?

Scripting.FileSystemObject's Drive collection could check, as can any of several drive information classes that can be downloaded from the Files section.

oFSO = CREATEOBJ('Scripting.FileSystemObject')
oADrive = oFSO.Drives('A')
? oADrive.IsReady()

You need the WSH installed on the target to use Scripting.FileSystemObject. There is a FAQ entry that tells how to get more information.
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