View Single Post
  #1 (permalink)  
Old 01-04-2007, 06:18 AM
simonc
Newsgroup Contributor
 
Posts: n/a
Rename in a batch file

This is a batch programming issue, so I'm not sure if this is the right
newsgroup. If not, maybe someone could suggest a better one.

In a batch file which runs a backup I want the last line to rename the log
file

name_of_backup_job.txt to

name_of_backup_job_today's date.txt with the date in YMD format so that
files will sort into order properly in a directory listing.

How do I extract the date into a variable, and how can I get it into YMD
format?

Grateful for advice.
Reply With Quote

 
Old 01-04-2007, 06:18 AM