miercuri, 30 septembrie 2009

Sync on Windows

Below is a way to do automatically sync on Windows using a tool and run a script before the Logoff operation.



- Microsoft has a tool called SyncToy (or other one: DirSyncPro)
* create a batch file with :
rem using DirSyncPro
rem Using SyncToy
echo "Starting sync: ">> c:\Sync.txt
date /t >> c:\Sync.txt
time /t >> c:\Sync.txt
"C:\Program Files\SyncToy 2.0\SyncToyCmd.exe" -R
echo "Ended sync: ">> c:\Sync.txt
time /t >> c:\Sync.txt

To run it before logoff:

-http://support.microsoft.com/kb/307882 :
* run gpedit.msc
* User Configuration > Windows Settings > Scripts (Logon/Logoff)
* double click on Logoff script and Add the batch file

Niciun comentariu:

Trimiteți un comentariu