SyncToy - Can it run as a service?

G

Guest

Hi

I'm presently running SyncToy to synchronise folders on 2 W2003 servers over
a WAN. It works fine if the 'master' is logged on, but if not logged on the
schedule tries to run and there is an error
SYNC: 04/25/2006 18:00:16:319: *** Exception: It is invalid to show a modal
dialog or form when the application is not running in UserInteractive mode.
Specify the ServiceNotification or DefaultDesktopOnly style to display a
notification from a service application.'

Am i correct in thinking that it wont run when logged off??

Cheers

Simon
 
G

Guest

I am also having problems synchronizing folder pairs between W2k3 servers.
Set SyncToy up as a scheduled task to run every 10min, works fine if it
launches while I'm logged in. However if not logged in it launches the
process but doesn't sync, and also doesn't end the process. So the at the
next scheduled execution the process is already running (although not doing
anything) and the new attempt just dies.

JB in Mpls
 
G

Guest

Same here. I hope some workaround is possible. If not - the SyncToy will have
to be updated to either check for interactive session and refrain from trying
to show its form, or include another switch to run in silent mode...
Anyway - this is a real pain...
 
G

Guest

Try creating a shortcut to the synctoy exe that runs minimized. Create
shortcut to synctoy.exe called “synctoy_shortcutâ€. Edit the properties to run
minimized. In your windows tasks scheduler, point to the
“synctoy_shortcut.lnk†file instead of the “synctoy.exeâ€. Type it in
yourself, do not browse to it. Let me know if it works. Robin HC
 
G

Guest

Try creating a shortcut to the synctoy exe that runs minimized. Create
shortcut to synctoy.exe called “synctoy_shortcutâ€. Edit the properties to run
minimized. In your windows tasks scheduler, point to the
“synctoy_shortcut.lnk†file instead of the “synctoy.exeâ€. Type it in
yourself, do not browse to it. Let me know if it works. Robin HC
 
G

Guest

I've done as you'd suggested. The result is BA(AA)D.
The process exits with an unhandled exception:
Application has generated an exception that could not be handled.
Going into debug (selecting CANCEL at the dialog), the exception is ID-ed as:
'System.ObjectDisposedException' occurred in system.windows.forms.dll

Now, the (AA) part of BAAAD is that whilst crashing on me, the SyncToy
managed to delete SyncToyDirPairs.bin.

The exception occured if I used -R with the shortcut, either
synctoy.lnk -R
or
"...\synctoy.exe" -R
within the shortcut had the same outcome.
Shortcut was set to minimized.
Strangely enough, if running the shortcut with minimized property set,
without the -R switch, the synctoy started just OK - albeit minimized ... as
one would expect.

.... well, i'll go back to manually running the toy... after I reenter the
sync configuration - this stinks.
 
G

Guest

Maybe you better go with robocopy.exe from the Windows 2003 resource kit. I
think you can download it as well - from the Microsoft website. There is no
GUI for it like synctoy. You have to type in the commands manually. ...
Robin HC
 
G

Guest

You could go with robocopy.exe from the Windows 2003 resource kit. I
think you can download it from the Microsoft website as well . There is no
GUI for it like synctoy. You have to type in the commands manually.

I used this command to duplicate the Echo feature in synctoy:

"C:\Program Files\Windows Resource Kits\Tools\robocopy.exe" "C:\Documents
and Settings\rhale-co\My Documents" "Y:\SyncToy\My Documents" /MIR /R:2 /NP
/LOG:robocopy_log_deleteme.txt

Robin HC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top