Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Rename dos file to include date w/mmddyy format  (Read 3721 times)

0 Members and 1 Guest are viewing this topic.

ctreu

  • Guest
Rename dos file to include date w/mmddyy format
« on: May 04, 2006, 08:13:09 AM »
I need to rename a file so that it includes the current date with the format of 'mmddyy' only.  I'll be putting this into a dos batch file, scheduled to run once a day.  (i. e. dy.txt should become dy050406.txt)

I've tried using $date$ but it creates it as 'day mm/dd/yy' which is not a usable format for a file neither would I want to use it even if it did work.

Any suggestions?

ctreu