Mar 30, 2005 #1 trolley Programmer Jan 29, 2004 62 US I am trying to rename a zip file with a timestamp within the name. Example: ERA.ZIP ERA-050330.ZIP I am trying to archive the file after being processed.
I am trying to rename a zip file with a timestamp within the name. Example: ERA.ZIP ERA-050330.ZIP I am trying to archive the file after being processed.
Mar 30, 2005 1 #2 bcastner IS-IT--Management Aug 13, 2002 29,271 US for /f "tokens=2-4 delims=/ " %%a in ('DATE /T') do set Date=%%a%%b%%c rename *.zip *-%date%.zip I do not think you need to do this, but what the heck: attrib +a *.zip (I think the archive bit will be set automaticly). Upvote 0 Downvote
for /f "tokens=2-4 delims=/ " %%a in ('DATE /T') do set Date=%%a%%b%%c rename *.zip *-%date%.zip I do not think you need to do this, but what the heck: attrib +a *.zip (I think the archive bit will be set automaticly).