JonnyT said:This can be done via group policy if you're running Xp Pro (Not Home)
Start -> Run -> gpedit.msc
You've now got two options - you can configure it to run a script at user logoff (1) OR at machine shut down (2)
(1) User Configuration -> Windows Settings -> Scripts (Logon/Logoff) & double click Logoff in the right-hand pane
(2) Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown) & double click Shutdown in the right-hand pane
Using either of these, you can set windows to run a batch file (.BAT or .CMD file) that you've written to synchronise your files manually (or prompted SyncToy to do it).
One warning - Be VERY careful with Group Policy - it's VERY powerful and you can lock yourself out of Windows permanently (well, everything bar a reinstall)!!
I did this exact thing last weekend using the user logoff script outlined in option 1.
HOWEVER.....
Windows will not wait for SyncToy to complete its backup as the START WAIT command will not work with external programs. Took me a couple of hours to figure that out.
Instead i ditched SyncToy and used Robocopy instead. Not as nice to use as synctoy since its command line based but does everything that synctoy will AND windows will wait for it to finish backing up before it shuts down.
I use a simple bat file to backup any new files in my document and any changes to my thunderbird profile to a drive on my server.
Easy
