Re: Run SyncToy on shutdown
- From: "Waggy" <wagtail@xxxxxxx>
- Date: Thu, 27 Oct 2005 07:03:45 -0500
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.
.
- Follow-Ups:
- Re: Run SyncToy on shutdown
- From: Michel
- Re: Run SyncToy on shutdown
- Prev by Date: Re: undo automatic settings in Paint
- Next by Date: Re: undo automatic settings in Paint
- Previous by thread: Re: Can not reduce certain e-mail pictures
- Next by thread: Re: Run SyncToy on shutdown
- Index(es):
Relevant Pages
|