Computing.Net > Forums > Disk Operating System > Add date stamp to filename using DOS

Add date stamp to filename using DOS

Reply to Message Icon

Original Message
Name: Susan
Date: January 10, 2002 at 07:03:57 Pacific
Subject: Add date stamp to filename using DOS
Comment:

I'm using DOS on Windows NT. I want to use a DOS program to add a datestamp to the name of a file (i.e. myfile.txt becomes myfile20020110.txt). I saw one help note on a webpage telling me to use a freeware that gives me a command 'date_var' to capture datetime into into variables, but can't find the freeware, nor can I find another way to do this. Any thoughts?

Thanks!


Report Offensive Message For Removal


Response Number 1
Name: bernie
Date: January 10, 2002 at 08:20:17 Pacific
Subject: Add date stamp to filename using DOS
Reply: (edit)

The old Dos version of Norton Utilities had a program called FD.EXE which could do exactly what you want. I don't think it's shipped with the latest versions of Norton though, as they now seem to cater for Windows stuff only.

FD.EXE may be downloadable from somewhere.....


Report Offensive Follow Up For Removal

Response Number 2
Name: patrick
Date: January 10, 2002 at 21:56:35 Pacific
Subject: Add date stamp to filename using DOS
Reply: (edit)

Doesn't DOS only allow 8 characters for a filename? a file named 123456789.txt is listed in DOS as 123456~1.txt

But a program doing what you want would be easy to write for Windows - is there some reason it has to be done in DOS?



Report Offensive Follow Up For Removal

Response Number 3
Name: DJ
Date: March 27, 2002 at 09:05:34 Pacific
Subject: Add date stamp to filename using DOS
Reply: (edit)

I need to do the exact same thing. Any help?????

Please email at sportsfan@thenflforum.com


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Add date stamp to filename using DOS

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge