Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the drive?
Message
 
À
18/10/2001 15:28:22
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570483
Message ID:
00570491
Vues:
25
>I have this code in my app.
>oProcess.Run("D:\ccdraft\bin\ccplot.exe -rk tempjan.bat", 2,.T.)
>Now I am finding that not all machines have this same path. Whats the easiest way to make sure the file is found and not cause an error?
>Thanks

You'd have to iterate through the drive letters and use drive type to determine if it's of the appropriate drive type, then use FILE() to determine whether or not the file exists.
George

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

Click here to load this message in the networking platform