Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch script to copy file and include date as part of filename

Status
Not open for further replies.

lambic

Technical User
Nov 28, 2002
68
GB
Hi,

I'm sure this problem has come up before & I've trawled through the threads to look for a solution, but am still confused.
I need to write a batch file (.bat) that will create a copy of a file that includes the current date (i.e the date when the batch file is ran)in DDMMYY format.

E.G.

Original file = logfile.txt
Copy file = logfile061202.txt

Any help would be greatly appreciated.

Thanks

 
Aaah - thanks. I've sorted it now, with help from that thread!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top