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 a file with todays date
Name: gooeymax Date: November 10, 2003 at 11:53:24 Pacific OS: xp CPU/Ram: 2.6 gig
Comment:
I know how to rename a file (c:\filename newfilename) and I know how to list todays date (date). How do I rename a file with the new name as todays date? Thanks so much!
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: Hi, This file with a little editing should help. File to be renamed sould be in a sub\dir called test..... Just posted a version below in another post. @ECHO OFF IF NOT "%1"=="date" ECHO Program wi...
Summary: I wrote a qbasic ( program to create a .bat file which creates and sets an environment variable. I then use value of the environment variable for the extension or filename. I called the batch file se...