Computing.Net > Forums > Disk Operating System > Appending Datestamp to Filename

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Appending Datestamp to Filename

Reply to Message Icon

Name: Christian Reed
Date: April 24, 2003 at 15:10:31 Pacific
OS: NT/2000 Server
CPU/Ram: 4-P3-500/2GB
Comment:

I have long wondered if it is possible to append a numerical datestamp or timestamp to a filename. If other words if a processed a file called "export.dat" how could I rename it to include today's date and time, such as "export_200304241505.dat"? So far this seems impossible, in the past I have used Shell script and created VB excutables to do this, but isn't there someway to do this in a batch script run in DOS?



Sponsored Link
Ads by Google

Response Number 1
Name: bitbyte
Date: April 25, 2003 at 03:36:04 Pacific
Reply:


there are a different solutions for that problem

solution to read date and time in a dos environment variable with a program
DATETIME.COM at http://plop.at

or read date and time with batch only at
http://www.batch.hpg.ig.com.br/


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Appending Datestamp to Filename

Add date stamp to filename using DOS www.computing.net/answers/dos/add-date-stamp-to-filename-using-dos/8822.html

Appending a Date to filename www.computing.net/answers/dos/appending-a-date-to-filename/12971.html

writing to file www.computing.net/answers/dos/writing-to-file/12430.html