Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Diskette in the drive A
Message
De
19/03/1997 17:08:11
 
 
À
19/03/1997 13:33:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00024863
Message ID:
00024894
Vues:
25
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform