Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DISKETTE IN DRIVE A
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00429799
Message ID:
00429820
Views:
16
>How would I check to see if there is a diskette in Drive A and if there is how do
>I check to see if there is enough space for me on that diskette to download a file?

While you can use DISKSPACE() to determine if sufficient space is available, if the platform is Windows NT, you'll need to use the SetErrorMode() API call to disable the "ugliest dialog know to man"< g >. See MS KB article Q191501.

If the Windows Script Host is an option, you'd simply
oFSO = CREATEOBJECT('Scripting.FileSysteObject')
IF oFSO.DriveExists('A')
  oDrive = oFSO.GetDrive('A')
  ? oDrive.IsReady
ENDIF
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform