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.
System date in file names
Name: Nearlynormal Date: September 26, 2004 at 15:50:32 Pacific OS: Win2KPro CPU/Ram: PIII1.4, 256MB
Comment:
Our office network uses Win2K Server and our PCs use Win2KPro. We are using a program called RealPopup for text messaging between PCs. RealPopup allows each PC to log all messages in a plain-text file with a .log extension. I would like to save each day's messages in a separate file. I am trying to figure out how to write a batch file that would run every evening that would rename the logfile from, e.g., Logfile.log to a file named with the system date, i.e., mmddyy.log, and then would create a new, empty Logfile.log file for the next day.
Summary: The following batch achieves your wish and the code is planned to perform in the safest way possible. I named it CDate.bat and to run type CDate Path_Name\File_Name (e.g. CDate C:\MyDir\MyFile.txt). I...
Summary: Hi, I need to append a date stamp to an output file name. Eg, abc_.txt I tried using abc_%date%.txt as the output file syntax and it wouldn't accept. I could echo %date% correctly though. Any tips? ...