![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 7176 Date : 2004-02-05 Author : Kan Yabumoto Subject : Re: Adding a date stamp to a batch file. Size(KB) : 0
Gary wrote: >I have a couple batch files that I use to backup files on a small >home network. Is there a way to add a date stamp to the xxcopy log >when ever they run? > >TIA > >Gary The log file's timestamp should tell you that. But, if you want to name the log file using the date value, you may do so by using the macro feature. http://www.xxcopy.com/xxcopy24.htm E.g., add the following switch in the command /ON:c:\mydir\BU/$yyyy-mm-dd$.log (creates a log file, BU2004-02-04.LOG in c:\mydir\ directory). Or encode further by /ON:c:\mydir\BU_/$ymmdd$.LOG The filename will be BU_40204.LOG (the first digit is the last digit of the current year (2004)). Kan Yabumoto
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.