1
Post New Requests Here / IDEA: Program which runs a program then shuts down the computer [Solved]
« on: September 18, 2012, 12:14 AM »
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
shutdown -s
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.
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
shutdown -s
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.