Operating System - Microsoft
1748181 Members
3877 Online
108759 Solutions
New Discussion

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 1
Gino Castoldi_2
Honored Contributor

Re: How to add a date to a file.

Closing this old thread.