@echo off rem rem Sample script for using Unison to synchronize USB drive with rem a local PC directory. rem rem Uses open-source Unison file synchronizer: rem http://www.cis.upenn.edu/~bcpierce/unison/ rem rem Tested on Win2000 and WinXP only. Probably won't work on Win 98/ME/NT. rem rem Script written 2004-01-08 by Brian Cantoni rem rem Environment variables: rem unison = location for Unison data files; these need to be on the USB drive itself rem usb_path = path on USB drive for data we're syncing (I chose a folder named Portable) rem local_path = path on PC for data; I use a Portable folder on the current user's desktop set unison=.\unison set usb_path=.\Portable set local_path=%USERPROFILE%\Desktop\Portable echo Ready to sync USB drive with local folder %local_path% pause rem Run Unison with 'default' profile because we give options on cmd line instead unison default "%usb_path%" "%local_path%" -batch -log -logfile log.txt -terse -times echo Done! Please review log above for results. pause