Steven,
I've run into a similar problem renaming a ZIP file. The file was still in use eventhough the process had finished. Try adding a timeout after the DOS program has termninated e.g. WAIT TIMEOUT 2 and see if this helps.
>George,
>
>I got your last reply and now have the dos window hidden and finishing the process(at least in part) before returning control back to teh rest of my code. The (at least in part) challenge. As soon as my batch file finishes I need to rename the files it has created(the names created are generated by the ccplot.exe and make no sense). I have tried =ADir() but it analizes the directory before the last file has completed and is always one file short of the actual. Again I need some kind of built in hesitation to make sure the =ADir() gets proper data. Thanks for the help.
Daniel