@Mlehto
Err ... what Tom said
Also, there are docs for all the Shell commands available by just typing "help <commandname>" in the Shell.
E.g. "help date" should type the doc for Date, including all the format specifiers you can use.
In my script, I set the log name with a date on it at once, so I don't have to rename it later, like this:
First, near the top of the script, I do:
set dt `C:Date LFORMAT "%Y%m%d%H%M%S"`
Then, every time I append to the log, I refer to it with a name containing that variable, e.g.:
C:Date >> RAM:MirC_$dt.log
(MirC is my shorthand for MirrorCopy, the tool I use, and I make the log in RAM:, but copy it to HD after every step of the backup, including when it's done.)
I guess I could have made it even simpler by making another variable containing the whole logname, BTW.
Best regards,
Niels