Run SyncToy on shutdown

G

Guest

Hello,

Using scheduling it is possible to run synctoy on startup.

However, I would like to automatically start synctoy just before the system
shuts down. It this possible?

If not, can this feature be added to SyncToy?

Kind regards,
Michel.
 
W

Waggy

The following works for me:



' name synch.vbs

' notes runs synchtoy and puts PC in standby



set WshShell = WScript.CreateObject("WScript.Shell")



WshShell.Run """c:\windows\bugary.cmd"""



WScript.Sleep 5000



WshShell.Run """c:\windows\synctoy.cmd"""



WScript.Sleep 30000



WshShell.LogEvent 0, "Computer in Standby Mode."



WshShell.Run """c:\windows\shutdn.cmd"""





*************************************************************



:: name bugary.cmd

:: notes backup outlook.pst and favorites to My Documents



xcopy "c:\Documents and Settings\GARY\Local Settings\Application
Data\Microsoft\Outlook\*.pst" "C:\Documents and Settings\Gary\My
Documents\Pst_Favs" /s /i /c /y



xcopy "c:\Documents and Settings\GARY\Favorites" "C:\Documents and
Settings\Gary\My Documents\Pst_Favs" /s /i /c /y



*************************************************************



:: name synctoy.cmd

:: notes run synctoy



"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"My Documents Backup"



*************************************************************



:: name shutdn.cmd

:: note1 puts pc in standby

:: note2 psshutdown available at
www.sysinternals.com/Utilities/PsShutdown.html



psshutdown -d -t 5



**************************************************************



synch.vbs is scheduled to run daily at 3:00 AM. On the settings tab, Wake
the computer to run this task is checked. Additionally, a shortcut to
synch.vbs is placed on the desktop in order to manually run the script and
put the PC in stand-by.
 
G

Guest

Thanks Waggy! I'll try that, it's a good idea.

However, if Microsoft is watching, please give this functionality a try...

Regards, Michel.
 
G

Guest

Hi Michel, scheduling SyncToy on events like startup and shut down is on the
feature request list for a future version. Thanks for the suggestion!

ReynaM
SyncToy PM
Microsoft Corp
 

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