IT 专业人士的资源 > 论坛主页 > SyncFx - SyncToy-File Synchronization > SyncToy 2.0 not running via scheduler on windowx xp service pack 3.0
提出问题提出问题
 

已答复SyncToy 2.0 not running via scheduler on windowx xp service pack 3.0

  • 2008年9月23日 13:30CRames 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    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

答案

  • 2008年9月29日 14:55CRames 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复

    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.

     

全部回复

  • 2008年9月23日 13:32CRames 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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.

     

  • 2008年9月25日 17:35drougnor 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    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 Snippet

     

    cd 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

  • 2008年9月26日 13:25CRames 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

     

    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 Snippet

    cd 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?

  • 2008年9月26日 17:10drougnor 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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
  • 2008年9月27日 19:17jugosali 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    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

     

  • 2008年9月29日 13:57CRames 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

     

    drougnor , the last result shown is "0x1"

    I really don't know what that result means.

  • 2008年9月29日 14:16CRames 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    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.

  • 2008年9月29日 14:20drougnor 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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
  • 2008年9月29日 14:55CRames 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复

    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.