echo YOU MUST CHECK THE DATE FORMAT BEFORE SAFE-RUNNING THIS! echo EDIT THIS FILE WITH NOTEPAD. AFTER DOING SO, DELETE THE echo LINES AS EXPLAINED INSIDE THE CODE, IN THE REM LINES echo RUN THE CMD WITH THE /V OPTION TO LET THIS STUFF WORK: echo CMD /V goto :EOF rem From The Beginning Untill here You Can DELETE: First Line Is Next One @echo off rem Then You can Safely Remove every Line Beginning With Rem, that is a rem comment, or REMark. At The End of The File you Find Several Remarks rem with Code Lines. You Can Change Lines Inside the GET+DATE START/END rem Remark group to fit the Need of your System. This is all you Can Do rem With this stupid Command Line Interpreter:) Or At Least is What *I* rem Can Do. pushd %1 set myrand=%random% for %%i in (*) do @( @echo @set nnxy=^^>temp%myrand%.bat @dir /t:c /n /4 /-c %%i |findstr "^[0-9]" >>temp%myrand%.bat @.\temp%myrand%.bat rem GET DD/MM/YYYY DATE START @set day=!nnxy:~0,2! @set month=!nnxy:~3,2! @set year=!nnxy:~6,4! rem GET DD/MM/YYYY DATE END @set thefile=!nnxy:~39! @set thefile=!thefile: =_! @rename %%i !year!^!month!^!day!_!thefile! ) del temp%myrand%.bat popd rem GET MM/DD/YYYY DATE START rem @set day=!nnxy:~3,2! rem @set month=!nnxy:~0,2! rem @set year=!nnxy:~6,4! rem GET MM/DD/YYYY DATE END rem GET YYYY/MM/DD DATE START rem @set day=!nnxy:~8,2! rem @set month=!nnxy:~5,2! rem @set year=!nnxy:~0,4! rem GET YYYY/MM/DD DATE END rem It ain't so hard, Try Yourself if All those do not fit You.