Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduling SyncToy

Status
Not open for further replies.

Nelviticus

Programmer
Sep 9, 2003
1,819
GB
I have a home network with a desktop, a laptop and a NAS box (basically a hard drive on the network). I'm trying to use Microsoft's SyncToy to sync the 'My Documents' folders on the two machines to a folder on the NAS.

I have set up folder pairings and can run the sync manually on either machine, so the next stage is to create a scheduled task and run this at system startup. This is where is all falls down.

I have followed the instructions in SyncToy's help file and created a scheduled task that's set to run at system start. I've set 'run as' to the admin account and entered the admin password. I've set the 'run' line to
Code:
"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R

If I run that exact same line from a command prompt, it executes properly. However, when the scheduled task runs - either automatically at startup or manually by right-clicking it and selecting 'run' - nothing happens. The 'status' column briefly shows 'running' and the 'last result' column shows '0x0'.

If I run SyncToy manually, the event viewer shows two entries: 'Beginning SyncToy run for all folder pairs' and 'Ended SyncToy run for all folder pairs'. If I run the scheduled task, there's only the 'Beginning...' entry.

Any idea what I'm doing wrong? I'm completely stumped :(

Regards

Nelviticus
 
just test it; after a -R add a folder pair name. As example:

"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"my pair"

Yerington
 
Users in the Run As box in Scheduled tasks need to have read access to the scheduled executable and any associated companion files required to complete the task.

SchedLgU.Txt in the Windows folder will give you further information about any errors with Scheduled Tasks.
 
I'll check those ideas tonight, although I'm already running it as the admin account and -R is supposed to run all folder pairs. Thanks for the tips though!

Regards

Nelviticus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top