Running SyncToy Silently

G

Guest

I want to schedule SyncToy 'silently' - either minimised or as the local
administrator.

I can create a link that will run SyncToy minimised, but if I call the link
with -R, the normal window is displayed.

I have worked out how to tun SyncToy as the local administrator, but as soon
as I add pairs, SyncToy never exits.

It seems that the -R command forces output and, in the case of running as
administrarot, the program hangs.

Has anyone managed to schedule SyncToy to run silently?
 
D

DatabaseBen

no i run it manually.

but not sure if it can be scheduled as a task

my guess that it cannot.

there is software like cobiant 8 backup utility
that is free and basically copies the files from
one place to another at a schedule time that
your want, something like every 5 minutes or so.
 
J

J-Mac

I want to schedule SyncToy 'silently' - either minimised or as the local
administrator.
Has anyone managed to schedule SyncToy to run silently?

Check the Help file?

Here's the section on scheduling it:

Schedule SyncToy

While you do not have to schedule SyncToy to use it, some users may
find it helpful to schedule recurrent SyncToy runs. Perhaps you have a
folder pair that takes a long time to sync and you want to run SyncToy
in the middle of the night, for example.

SyncToy does not provide a user interface to schedule folder pairs to
run at designated times. However, there is a method to schedule tasks
using the Microsoft© Windows© operating system.

To schedule a task using the operating system:

From the Start menu, select All Programs - Accessories - System Tools
- Scheduled Tasks.
Select Add scheduled task to start the Scheduled Task Wizard. You will
see a list of possible programs to run.
SyncToy may appear as an option in the list. If SyncToy does not
appear in the list, click Browse and go find it.
The wizard will next prompt you to enter how often you want to run the
scheduled SyncToy (for example, daily, weekly, et cetera). Select a
frequency.
The next page asks when to start the task. Select a start time.
The next page asks for the user name and password to run the program
under. Enter your user name and password.
The final page contains an option to open the properties dialog when
the wizard ends. Select this checkbox.
Modify the Run textbox to include the –R command line option. –R all
by itself will run all folder pairs that are active for run all. If
you want to run just a single folder pair, add –R“My Pair” to the end
of the command line. Note: there is a space before the hyphen but not
one after the R. If the folder pair name contains a space, surround it
with quotation marks, as the example above shows. For another example,
assume that SyncToy is in the folder named C:\My Folder and that you
want to run a folder pair named "My folder pair." Enter the command
line as follows, including the quotation marks: "C:\My
Folder\SyncToy.exe" -R"My folder pair." Note that there are two sets
of quotation marks in this case: one is around the path to the SyncToy
program file and the other surrounds the folder pair name.
 
R

rhertzler

You can schedule SyncToy to run but it only runs IF you are logged in
(or the session is locked) and the login has a password. SyncToy needs
a place to throw up its user interface.

I have run into this same issue when using SyncToy to do some backups
on a server to WebDAV storage. Just ran across this article -
http://www.codeproject.com/useritem...umid=352382&select=1739271&df=100&msg=1739271
for a way to build a console front-end onto the DLL. That way SyncToy
does not have a user interface and it can run silently. It actually
works as long as you only have a single folder pair you want to sync. I
havn't figured out how to select one of multiple or all folder pairs
yet. Be advised that you have to compile the code - but it is worth the
trouble for a great backup scheme.

www.BigWindow.net for custom hosting
 
G

Guest

J-Mac said:
Check the Help file?

Here's the section on scheduling it:

Schedule SyncToy

While you do not have to schedule SyncToy to use it, some users may
find it helpful to schedule recurrent SyncToy runs. Perhaps you have a
folder pair that takes a long time to sync and you want to run SyncToy
in the middle of the night, for example.

SyncToy does not provide a user interface to schedule folder pairs to
run at designated times. However, there is a method to schedule tasks
using the Microsoft© Windows© operating system.

To schedule a task using the operating system:

From the Start menu, select All Programs - Accessories - System Tools
- Scheduled Tasks.
Select Add scheduled task to start the Scheduled Task Wizard. You will
see a list of possible programs to run.
SyncToy may appear as an option in the list. If SyncToy does not
appear in the list, click Browse and go find it.
The wizard will next prompt you to enter how often you want to run the
scheduled SyncToy (for example, daily, weekly, et cetera). Select a
frequency.
The next page asks when to start the task. Select a start time.
The next page asks for the user name and password to run the program
under. Enter your user name and password.
The final page contains an option to open the properties dialog when
the wizard ends. Select this checkbox.
Modify the Run textbox to include the –R command line option. –R all
by itself will run all folder pairs that are active for run all. If
you want to run just a single folder pair, add –R“My Pair†to the end
of the command line. Note: there is a space before the hyphen but not
one after the R. If the folder pair name contains a space, surround it
with quotation marks, as the example above shows. For another example,
assume that SyncToy is in the folder named C:\My Folder and that you
want to run a folder pair named "My folder pair." Enter the command
line as follows, including the quotation marks: "C:\My
Folder\SyncToy.exe" -R"My folder pair." Note that there are two sets
of quotation marks in this case: one is around the path to the SyncToy
program file and the other surrounds the folder pair name.

I just began using Synctoy. It seems to work fine manually. When i try to
schedule it, I get the following error message in the Synctoylog.log file ...

SYNC: 03/05/2007 09:05:58:796: Beginning SyncToy run for all folder pairs.
SYNC: 03/05/2007 09:05:58:906: *** Exception: Showing a modal dialog box or
form when the application is not running in UserInteractive mode is not a
valid operation. Specify the ServiceNotification or DefaultDesktopOnly style
to display a notification from a service application.

Help trying to schedule would be appreciated. I am trying to schedule it to
run when the system turns on in the morning.
 

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