| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Accredited PayPal World Seller|
| Forum Library : Charter : Moderators: bill |
(deprecated) Microsoft Windows OS (XP/NT/Vista) Forum
|adding date into a file name|
adding date into a file name
| 7:36 am on Jul 23, 2007 (gmt 0)|
i am wondering if it is possible to add a date or timestamp into a file name using the command line?
i am using this
REN C:\news_full_night.mp3 news_full_night_%DATE%.mp3
but its not working because obviously / are not valid characters.
| 8:10 am on Jul 23, 2007 (gmt 0)|
There are quite a few solutions to be found with a search of the keywords DOS, rename & date [google.com].
| 5:27 am on Jul 24, 2007 (gmt 0)|
thank you that was exactly what I needed, if I only knew what words to search for some times...thanks again!
ren test.txt %date:~10%-%date:~4,2%-%date:~7,2%_test.txt
| 8:00 am on Jul 24, 2007 (gmt 0)|
Glad that helped. You know what they say...teach a man to fish... ;)
| 3:53 am on Jul 25, 2007 (gmt 0)|
ha thats so funny, i just watched a movie last night where they quoted that quote!
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2013 all rights reserved