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 a file with time
Name: David Terrill Date: November 3, 2004 at 16:44:46 Pacific OS: Windows 2000 CPU/Ram: 2 Ghz
Comment:
I have figured out how to rename a file with the date with the command below: ren test.txt test_%date:~4,2%-%date:~7,2%-%date:~10,4%.txt
However I would also like to rename a file with the time. Does anyone have any suggestions?
Summary: Hello, I am trying to create a batch file which will rename *.TXT files with the current time. The command below works perfectly when the time is betwenn 10am and 12:59am but does work when the time ...
Summary: I need to rename a file in a DOS Batch script but do not know how to handle the long file name. Filename: eop.test_BBB_2005052000000M07S.txt I want to rename the file to Filename: 2005052000000M07S.tx...
Summary: You can rename a file and add a date stamp like this: ren h:\test\hello.txt hello%date%.txt If you want to add date stamp to all files in a folder, you can use this: h: cd test for %%i in (*.*) do ren...