| Author |
Message |
Michel
Guest
|
Posted:
Wed Oct 26, 2005 4:27 pm Post subject:
Run SyncToy on shutdown |
|
|
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. |
|
| Back to top |
|
 |
Waggy
Guest
|
Posted:
Thu Oct 27, 2005 4:28 pm Post subject:
Re: Run SyncToy on shutdown |
|
|
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@discussions.microsoft.com> wrote in message
news:441830CA-839F-4D6E-B727-39DA3AF93853@microsoft.com...
| Quote: | 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. |
|
|
| Back to top |
|
 |
Michel
Guest
|
Posted:
Fri Oct 28, 2005 3:26 pm Post subject:
Re: Run SyncToy on shutdown |
|
|
Thanks Waggy! I'll try that, it's a good idea.
However, if Microsoft is watching, please give this functionality a try...
Regards, Michel.
"Waggy" wrote:
| Quote: | 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@discussions.microsoft.com> wrote in message
news:441830CA-839F-4D6E-B727-39DA3AF93853@microsoft.com...
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.
|
|
|
| Back to top |
|
 |
David Candy
Guest
|
Posted:
Fri Oct 28, 2005 3:46 pm Post subject:
Re: Run SyncToy on shutdown |
|
|
Xp can run scripts on shutdown or logoff. Type logoff scripts in help.
--
--------------------------------------------------------------------------------------------------
Read David defending the concept of violence.
http://margokingston.typepad.com/harry_version_2/2005/10/entering_the_ga.html#more
================================================"Michel" <Michel@discussions.microsoft.com> wrote in message news:441830CA-839F-4D6E-B727-39DA3AF93853@microsoft.com...
| Quote: | 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. |
|
|
| Back to top |
|
 |
ReynaM
Guest
|
Posted:
Sat Oct 29, 2005 12:27 am Post subject:
Re: Run SyncToy on shutdown |
|
|
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
"Michel" wrote:
| Quote: | Thanks Waggy! I'll try that, it's a good idea.
However, if Microsoft is watching, please give this functionality a try...
Regards, Michel.
"Waggy" wrote:
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@discussions.microsoft.com> wrote in message
news:441830CA-839F-4D6E-B727-39DA3AF93853@microsoft.com...
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.
|
|
|
| Back to top |
|
 |
|
|
|
|