Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking To See if A:Drive is ready
Message
 
À
06/09/2000 03:49:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00412806
Message ID:
00412846
Vues:
33
>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
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform