Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Diskette in the drive A
Message
From
19/03/1997 17:08:11
 
 
To
19/03/1997 13:33:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00024863
Message ID:
00024894
Views:
29
>How can i know if there is a diskette in the drive A:?
>Can i do that using an Api?
>Can i do that with Vfox?
>Thanks for any advice

Make it easy:
nFile=fcreate("test.txt")
=flose(nFile)
lErrflag=.f.
on error lErrflag=.t.
copy file test.txt to a:\test.txt
on error
if lErrflag=.t.
=messagebox("Insert Disk into A")
return
endif
delete file a:\test.txt
*** and do whatever you want...
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform