Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to use the Microsoft SyncToy to sync files between two web servers.
I can run the sync job in both GUI and the command line mode.
"C:\Program Files\SyncToy 2.0\SyncToyCmd.exe" -R

But I can't run the same command successfully in task scheduler. I get the following error messages:
* Failed to execute folder pair upload_photos. Could not locate folder \photos\d$\Projects\warner\wwwroot\

What's the problem?
The permission issue? But I can run it manually.
Someone says that it's the user account issue with UNC path. What should I do?

share|improve this question

At a quick glance it appears you have one of the following errors:

  1. \photos\d$\Projects\warner\wwwroot\ isn't a valid path. Either photos is a machine, so there should be a double back slash at the start, or it's a folder and should be after the drive letter.
  2. The permissions are incorrect for the user account under which the task is running.
share|improve this answer
* Failed to execute folder pair upload_photos. Could not locate folder \photos\d$\Projects\warner\wwwroot\

is a strange behaviour, it has to be "\photos\d$" or "\\photos\d$"? (note the double backslash)

Anyway, if you are sure that the scheduled job is running with the proper user rights you can paste the command in a batch file and call that batch via task scheduler.

share|improve this answer
@John Gardeniers...I agree with you (+1), I was writing my answer when you have posted your one :-) – Cagliostro Aug 9 '10 at 10:19
that happens a lot, you'll get used to it. :) – John Gardeniers Aug 9 '10 at 10:42

As soon as I changed the settings to only run when user is logged in the task ran successfully.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.