Dec 072017
 
Rename a file to today's date preserving the extension. Useful in batch files when you need to keep a log. TP 5.0+ source included.
File DATSTAMP.ZIP from The Programmer’s Corner in
Category Batch Files
Rename a file to today’s date preserving the extension. Useful in batch files when you need to keep a log. TP 5.0+ source included.
File Name File Size Zip Size Zip Type
DATSTAMP.DOC 573 364 deflated
DATSTAMP.EXE 5328 3432 deflated
DATSTAMP.PAS 2600 874 deflated

Download File DATSTAMP.ZIP Here

Contents of the DATSTAMP.DOC file


This program date stamps FILENAME.EXT so that the result is mm/dd/yy.ext.

The program is useful with PCDATA, which is the set of PC Magazine programs
for detecting file changes due to viruses or other causes. I like to keep the
old ))SYS.LOG files for awhile to see what's going on my disk. I use DATSTAMP
in the batch file that scans the disk and makes a LOG file of the changed
files. DATSTAMP renames the existing LOG file to a serially dated file with
a .LOG extention so that it can be archived.

John Wirt
234 E Street, NE
202 547 7168
Washington, DC


 December 7, 2017  Add comments

Leave a Reply