Its all coming back to me now...
You will also want your executable to be in your path statement.
Oooh, You can run path using the above code, then take the path as the variable, then add the path to your executable to the path variable, then pass the path variable back using set path.
Who here remembers DOS?!
'------------------
Do While Not objExecObject.StdOut.AtEndOfStream
strText = objExecObject.StdOut.ReadAll()
If InStr(strText, "Path") > 0 Then
sPath = strText & ";" & "C:\Program Files\FoxPro\"
End If
Loop
Set objExecObject = objShell.Exec(set path sPath)
Set objExecObject = objShell.Exec(foxpro.exe)
HTH
(I'll start drinking decaffeinated...)
mmcdonal
|