Ptrck's 'Don't Forget How To' Blog
Wednesday, February 2, 2011
Rename the file using the current system date
Here's how you'd rename the file using the current system date.
ren test.txt test%date:~4,2%-%date:~7,2%-%date:~10%.txt
or even better
ren test.txt test-%date:~4,2%-%date:~7,2%-%date:~10%-%time:~0,2%%time:~3,2%%time:~6,2%.txt
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment