Batch File goodness

I spent the last two days automating processes that co-workers had been doing on a manual basis for a LONG time. One thing that I needed was to rename a file with the current date. Bring in google and bam I found this.

ren test.txt test%date:~4,2%-%date:~7,2%-%date:~10%.txt

Now I have it handy in case I ever need it again. Credit goes to FishMonger on http://www.computing.net/dos/wwwboard/forum/14569.html

Comments are closed.