I want to copy a file; L:\dos\miamigo.txt to a local disk and add timestamp to the file name;
C:\_dos\miamigo20031110190103.txt and the next copy of the same file will get a new "timestamped" named.
Is this possible ?
How to copy a file and rename with timestamp ?
Moderators: JRL, Dorian (MJT support)
Yes.
Code: Select all
Year>YYYY
Month>MM
Day>DD
Hour>HH
Min>MM
Sec>SS
Let>Source=L:\dos
Let>Dest=C:\_dos
Let>SName=miamigo.txt
Let>DName=miamigo%YYYY%%MM%%DD%%HH%%MM%%SS%.txt
CopyFile>%Source%\%SName%, %Dest%\%DName%