Steven,
If you want to launch a process and wait until that process terminates, use the method launchAppAndWait()
Try something like this:
oProcess = NEWOBJECT("RunApp", "process", "", "D:\ccdraft\bin\ccplot.exe -rk tempjan.bat","D:\ccdraft\bin\","HID")
oProcess.launchAppAndWait()
HTH
>Is there any way to get this code to keep from displaying the dos window and still wait until process is complete?
>Run /2 D:\ccdraft\bin\ccplot.exe -rk tempjan.bat
>
>I have tried the api_apprun but I still can't get the process to finish before my rename command kicks in.
>
>Thanks
Daniel