close all open cmd windows at end of batch
Posted on 2011-10-25
I have a batch application that runs through several batch files. It executes from temporary directory. The problem is that once the batch is completly done it leaves anywhere from one to five CMD windows open that says something like...
"c:\documents and settings\user\local settings\temp\????.tmp"
Main question: I have a batch at the end responsible for cleaning up files, how do I edit it so that closes any and all remaining CMD windows that are open?
Less important question: And if I wanted to exclude just one script from closing, how would I do that?