SyncToy 2.0 not running via scheduler on windowx xp service pack 3.0
I have been trying to schedule the synctoycmd.exe with no luck. I have followed the suggestions in this forum but none of the related scheduler threads have helped me.
anyway, I am running windows xp professional service pack 3.0 and using the latest Synctoy Version (2.0)
on the scheduler task this is what I have: "C:\Program Files\SyncToy 2.0\SyncToyCmd.exe" -R in order to run all folder pairs.
If I look at the SyncToy Log I see the following information:
SYNC: 09/23/2008 09:29:00:609: -------------------------------------------------------------------------
SYNC: 09/23/2008 09:29:00:609: Starting SyncToy, version 2.0.100.0, built 8/12/2008 2:07:12 PM.but that is all that is processed. it seems that it exits with an error but no error is registered in the log.
If I run the application manually (open SyncToy.exe) all runs well and the log registers every step taken
Have anyone experienced this problem? and is there a solution?
Thanks
Réponses
While validating the source of the error code "0x1", I stumbled upon the solution of the problem.
my computer is part of a computer network domain and I belong to the Network Administrators Group.
"SyncToy Help" states that you must have administrative privileges in order to install the application, specially if you don't have the Microsoft Sync Framework. Since I have administrator privileges I installed Synctoy with my user profile and on the scheduler task I had the "Run As" Field As the local Administrator.
It turns out that if you install SyncToy with a profile that is not Administrator:
1) You must use that same profile in the "Run As" Field on the Task Tab, as in "YourDomain\yourprofilename"
2) also, you have to mark the "Run only if logged on" checkbox.
3) Remember to set your password also.
The scheduler is now running the SyncToyCmd correctly.
for more information on scheduler issues see http://support.microsoft.com/default.aspx/kb/308558
Thanks everyone for your help.
Toutes les réponses
- by the way, I am trying to synchronize to an external usb disk. And the directories being synchronized are on the local computers c:\ drive.
I personally haven't acutally run the new SyncToy through the schedualer directly, but I have been running a batch file that also handles the shutting down and restarting of certain programs so they don't interfere with the proper backing up of all my files due to anything being 'locked'.
Just call each folder pair on a different line in the batch file. It will step through each one, waiting for each particular pair to finish before returning to the next step in the batch file.
Here's a sampling from my batch file.Code Snippetcd C:\Program Files\SyncToy 2.0\
title Synctoy Step 1
synctoycmd.exe -R"Step 1"
title Synctoy Step 2
synctoycmd.exe -R"Step 2"
title Synctoy Step 3
synctoycmd.exe -R"Step 3"
title Synctoy Step 4
synctoycmd.exe -R"Step 4"Make SURE that there is no space between the -R and the "step #" name.
Not the BEST solution, but it IS a solution.
Once you have your batch file crafted to your liking, you can use that in the Scheduled Tasks.
d
Thank you for your reply.
I tried that but it did not work. I tried running the batch file manually and it runs OK, but something is preventing it from running thru the windows scheduler. I have checked the security issues and the task scheduler service and all seems fine.
All I have are two folder pairs. here is the contents of the batch file:
Code Snippetcd C:\Program Files\SyncToy 2.0\
SyncToyCmd.exe -R"MyDocuments"
SyncToyCmd.exe -R"Projects"I have also checked the windows event viewer. There are critical or warning messages related to the task either.
any other suggestions?
- When you set the batch file to run in the Scheduled Tasks program and let the scheduled time pass, what is the code that shows in the "Last Result" column?
d I solved a similar problem by using 8.3 names in the task propierties tab.
First I tried to copy the original command in the execute option (in the start menu) and I had the message that "C:\archivo." cannot be found (why so short?, I said)
So I tried with the 8.3 DOS names (be carefull with the .0 of the synctoy dir, it makes me go crazy for some minutes)
Finally with "C:\Archiv~1\Syncto~1.0\SyncTocmd.exe -R" (Please note that you should change "archiv" for the six first letters of your program folder) worked fine, but I had a flash black screen whit an unreadable message..... I have changed the unit and need a new syncro with the windows util. After that, everything worked fine.
Hope I helped you
jugosali,
although I really don't think that 8.3 Dos Names would solve the issue I am having with SyncToy, I verified and tested anyway your suggestion. Nonetheless, the issue stands, but thanks any way for your help.
crames.
- The 0x1 means it completed with an error being returned. Most likely cause is that your pc is being sensitive to the spaces in 'Program Files' and so forth. The above poster is on to something with using the 8.3 naming convention, but I'd try something a little more simple.
Try to alter your cd command just a little.
cd "c:\program files\.....
The quotes tells windows to follow the absolute path, and not to see the space as the end of the command.
Give that a try and let us know if that helps.
d While validating the source of the error code "0x1", I stumbled upon the solution of the problem.
my computer is part of a computer network domain and I belong to the Network Administrators Group.
"SyncToy Help" states that you must have administrative privileges in order to install the application, specially if you don't have the Microsoft Sync Framework. Since I have administrator privileges I installed Synctoy with my user profile and on the scheduler task I had the "Run As" Field As the local Administrator.
It turns out that if you install SyncToy with a profile that is not Administrator:
1) You must use that same profile in the "Run As" Field on the Task Tab, as in "YourDomain\yourprofilename"
2) also, you have to mark the "Run only if logged on" checkbox.
3) Remember to set your password also.
The scheduler is now running the SyncToyCmd correctly.
for more information on scheduler issues see http://support.microsoft.com/default.aspx/kb/308558
Thanks everyone for your help.

