Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking To See if A:Drive is ready
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00412806
Message ID:
00413183
Views:
26
>>Is there a way, in an app, I can check to see if there is a disc in A: drive before copying files to it?
>
>I'd highly recommend using the Windows Script Host over any other method, if it's available. It's both simple and not prone to the possibility of Windows throwing an error like DISKSPACE("A:") is under Windows NT. The following snippet determines if the drive is ready.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>oDrive = oFSO.GetDrive("A:")
>? oDrive.IsReady
Mike Stewart
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform