I'm running 64b Win7. I have a batch file (.bat) that I use to shut the machine down each night, that optionally backs up data and then which calls CCleaner. After CCleaner finishes the system shuts down.
Everything works fine. But here's what I want to do. I want to start another program when the script opens, have it run in parallel to the backup and cleaning operation, and have its completion mutually critical, with the backup/cleaning operations, to the machine shutting down.
IOW, I want to parallel process, but I want the final shut down to be dependent on both processes completing. I don't want the system to shut down until both are finished.
Currently I call the first program via a Start command. The problem is that the machine shuts down when the cleaning process is done, regardless of whether the first program is finished.
It's a logical problem that I haven't been able to find a batch tool to solve yet. My other option might be to go to an autoit script.