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
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?
Summary: 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 f...
Summary: Hi, What I am doing is creating a batch file that will take a backup of a configuration file on my NT 4.0 Web server. What I would like to do is copy it from one subdirectory to another on the same se...
Summary: No problem, it doesn't sound weird at all. In fact, that's very easy to do: tasklist.exe > filename.ext That will get the output from tasklist.exe and write to filename.ext, making such data the only ...