Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoid Drive Not Ready
Message
De
13/06/2008 03:45:37
 
 
À
13/06/2008 02:46:02
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01323711
Message ID:
01323717
Vues:
14
lnHandler = FCERATE([A:\test.txt])
IF lnHandler < 0
   *** Drive is not ready or read-only access
ELSE
   FCLOSE(lnHandler)
   TRY
      DELETE A:\test.txt
   CATCH
   ENDTRY
ENDIF
Not well tested.


>Dear all,
>
>Portion of my code include a checking on available drive in my machine. Since my machine have built in card reader as i:, j:, k:, l: . The code generate an error :
>
>Exception Processing Message c0000013 Parameter 764ebf9c 4 764ebf9c 764ebf9c;
>
>which should be caused by that no card in the card reader.
>
>I tried WSH
>
>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>oDrv = oFSO.GetDrive("A:")
>? oDrv.IsReady
>
>* You can also check if drive exists
>? oFSO.DriveExists("A:")
>
>and diskspace(Drive)>-1
>
>I still cannot get rid of the error message..
>
>How can I do that ?
>
>
>
>
>Regards,
>
>
>Ransome
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform