Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the drive?
Message
 
To
18/10/2001 15:28:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00570483
Message ID:
00570491
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform