>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