1: 2: 3: 4: 5: 6:
@echo off set file=%date:~10,4%%date:~4,2%%date:~7,2%_sample.csv type %file%>tmp.csv del %file% ren tmp.csv %file% %file%