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.
Renaming file to current date.
Name: Darin Ambrose Date: May 29, 2002 at 11:45:34 Pacific
Comment:
Does anybody have a batch file that file rename a file to a certain date. ex. hold.doc to 20020529.doc
Summary: I need a batch to rename a file to whatever date was yesterday. I have this script to get todays date (CLyymmdd.txt): @for /f "tokens=1,2,3,4 delims=. " %%a in ( 'date/t' ) do @set m=%%b @for /f "toke...
Summary: 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 t...
Summary: I need to copy a file from its original name to {test.txt} to {20030819.txt} The copied file name must contain the current date, How do I do This? ...