cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a date to a file.

Gino Castoldi_2
Honored Contributor

How to add a date to a file.

Hi,

System: NT4.0 SP5

I would like to add the current date to a file as a file extension.
It needs to be in this format: "mmddyyyy"

The 'date/t' command somehow needs to be parsed
out so that it only has 8 digits as shown above.

Can this be done in a batch (.bat) file?

Thank you in advance.
Gino
1 REPLY
Gino Castoldi_2
Honored Contributor

Re: How to add a date to a file.

Closing this old thread.