Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking To See if A:Drive is ready
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00412806
Message ID:
00413183
Vues:
25
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform