Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Rename file with current date
Name: charles_cp Date: April 21, 2003 at 19:49:30 Pacific OS: win 2000 pro CPU/Ram: 700/256
Comment:
How do I rename a file with the current date? eg test.txt to text20030422.txt -------------- for /F %%A in ("%DATE%") do ren test.txt test%%C%%A%%B.txt
I used the command to renmae my text file, but the file will rename to "test%CTue%B"
Summary: I want to create a file with current date and time as the filename, e.g. YYYYMMDD_HHMMSS.txt (HH in 24hrs format). How can I achieve it???? ...
Summary: R_Man is right, that's been one of the top FAQs from this forum. FAQ #02 - Get current date into variable without separators http://www.batch.hpg.com.br/index.htm#02 Let's say you save the current dat...