rem Install a new service for rsync and start it

cygrunsrv.exe -I rsyncd -e CYGWIN=nontsec -p c:/rsyncd/rsync.exe -a "--config=c:/rsyncd/rsyncd.conf --daemon --no-detach"
cygrunsrv.exe --start rsyncd

rem Les Stott notes you can setup the WinXP firewall to allow
rem port 873 TCP connections to rsync with the following script
rem lines.  Remove the rem lines to run these three commands.
rem
netsh firewall set allowedprogram program = c:\rsyncd\rsync.exe name = rsync mode = enable scope = CUSTOM addresses = LocalSubnet
netsh firewall set portopening protocol = TCP port = 873 name = rsyncd mode = enable scope = CUSTOM addresses = LocalSubnet
netsh firewall set icmpsetting 8 enable
