I would like a little program which I can click on which runs a program (SyncToy), waits for it to finish, then shuts down the computer (Windows XP). I am not trying to run the program every time I shut down so I donâ€™t need a scheduled task.
I believe this could be down with a batch file but I am not competent to write it. Iâ€™m afraid Iâ€™ll get something wrong and SyncToy will start to run and the computer will launch a shut down in the middle and scramble my backups.
The program I want to run before shutdown is SyncToy 2.1 with this path and parameters: "C:\Program Files\SyncToy 2.1\SyncToyCmd.exe" â€“r
UPDATE SOLVED: September 27
Thanx to anyone who tried to help. I just want to mention that after asking someone I figured out this Batch File code which works:
Start "" /Wait "C:\Program Files\SyncToy 2.1\SyncToyCmd.exe" -r
I cannot figure out any rhyme or reason as to where the quote symbols go. I see quotes around /Wait and have no idea whats going on, I only know it works.