Re: Run SyncToy on shutdown

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.





"Michel" <Michel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:441830CA-839F-4D6E-B727-39DA3AF93853@xxxxxxxxxxxxxxxx
> 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.


.



Relevant Pages

  • Re: Run SyncToy on shutdown
    ... Regards, Michel. ... > WshShell.LogEvent 0, "Computer in Standby Mode." ... >> Using scheduling it is possible to run synctoy on startup. ...
    (microsoft.public.windowsxp.photos)
  • RE: Standby-on-Idle does not work after using TV
    ... A screensaver replacement that accurately puts the machine into standby mode ... Scenario 1: ... Launch Mediacenter, watch some TV, then stop. ...
    (microsoft.public.windows.mediacenter)
  • Re: Waiting ....
    ... Pam the goose wrote: ... > puts the S&R Team on standby and he's packed the Control ...
    (uk.people.silversurfers)
  • standby
    ... When i put my computer on standby, the cooling fan doesnt ... and on my friends compter when he puts it on ...
    (microsoft.public.windowsxp.general)