none
Synctoy - task scheduler - command Line window

    Question

  • In using SyncToy 2.0 (on Windows Vista Home Premium) with the Task Scheduler, I am forced to use the command line application (synctoycmd.exe).  This causes a command line window (titled "taskeng.exe") to open over the desktop and remain while the sync task is carried out. Is there a way or a parameter to force the running to be "silent" or at the very least, minimized? There is no value to the command line window since it is not interactive, and displays no useful information (all information is lost since the window closes as soon as the results are displayed).

     

    Friday, October 10, 2008 4:57 PM

Answers

  • I'm not aware of any way to hide the task window that comes up currently if the task is running as the logged on user. To avoid the window popup, you could think about running SyncToy and the background sync using a different user account that has the same level of access but that may be going too far to solve a relatively small nuisance.

     

    We will think about improving the whole scheduled sync infrastructure in future versions.
    Monday, October 13, 2008 9:55 PM
    Answerer

All replies

  • I'm not aware of any way to hide the task window that comes up currently if the task is running as the logged on user. To avoid the window popup, you could think about running SyncToy and the background sync using a different user account that has the same level of access but that may be going too far to solve a relatively small nuisance.

     

    We will think about improving the whole scheduled sync infrastructure in future versions.
    Monday, October 13, 2008 9:55 PM
    Answerer
  • Thanks for information. I can live with the inconvenience for the time being; perhaps I can set the task up to run on another account as you suggest to see if that masks it.

    Friday, October 17, 2008 6:41 PM
  • I have found a solution (sort of)

    1. Force the SyncToy task to run by right clicking on it in Task Scheduler and choosing Run.

    2. Right click on the taskeng.exe program top menu bar. A menu will pop up and a defaults option will show up. It will only be open as long as the task runs so you might have to run it more than once and be quick!

    3. Choose the Layout tab.

    4. In this screen, at the bottom, uncheck "Let system position window"

    5. Change window size settings to the minimums of 1 and 1

    6. Change window position settings to the minimums of -8 and -8

    7. Click OK before the screen disappears!

    This is not perfect in that the taskeng.exe still runs but it will be small and at the top left corner of the screen. Alternatively, you could specify any screen position that works for you.

    I tried to set the screen position numbers to -100 so it would just not show up at all but had little success with that. Try it though. You might come up with better ideas.

    Hope this helps


    Tuesday, December 02, 2008 6:15 AM
  • It would be great to see an option to hide or minimize scheduled command windows as this has been bugging me since NT 3.1
    Tuesday, October 20, 2009 3:45 AM
  • What about running it from a small VBScript?  There is an option for the Shell.Run method to hide the window.  Something along the lines of

    Set objShell = Wscript.CreateObject("Wscript.Shell") 
    objShell.Run "mysynccmd", 1 'the 1 specifies hide the window and activate another
    

    Wednesday, October 21, 2009 1:15 PM
  • Try this.

    Create a shortcut to the SyncToyCmd.exe file.  If Windows7 complains about not being able to create a shortcut in the same directory as it did for me, then create the shortcut on the desktop and move it from the desktop into the same folder where the .exe is, or where ever else you would like to keep it.  Right click the shortcut and get the properties for it.  Make sure the shortcut is named the same as the .exe file.  Set the "Run" property to "Minimized" which will run the .exe in a minimized window.

    Now schedule the shortcut to run instead of the .exe program.  Do this by setting up a scheduled task as you normally would.  As long as you have named the shortcut the same as the .exe, all you have to do is add a .lnk to the end of the path of the application to run in the task scheduler.

    "C:\Program Files\SyncToy 2.1\SyncToyCmd.exe.lnk"

    After this, when ever the scheduled task runs, it runs the shortcut to the application in a minimized window, and you don't see it!

    This technique can be used to run any program in a minimized window, not just the sync toy.

    • Proposed as answer by laurelii Friday, March 16, 2012 7:08 PM
    Thursday, November 18, 2010 5:09 AM