Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DISKETTE IN DRIVE A
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00429799
Message ID:
00429820
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform