The ONLY way to do it is to compile a small dll in C that creates a wrapper that calls your program. I'll get you a copy of the docs tomorrow...they are are the office.
>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