For this script you need FDATE program to mention the date format to insert in to the file name.
and here used the VB script to compare dates, creation and today date and deleting. So many people written the batch script for this with environment variables in DOS. I thought that script is very long and little bit confusing.
Here is the batch script for rename the log files
Rem the below line come in to the "c:\>" this file kept in C drive
rem stoping the rsync service
Net stop rsyncd
for /f "tokens=1,2 delims=/\-." %%f in ('FDATE /Ff /Occyymmdd') do REN c:\rsync\rsyncd.log %%f%%g.log
gzip -9 c:\rsync\*.*
Net start rsyncd