I am trying to customize the piped output of a batch file. I am currently using Robocopy to copy/move files to various directories based on the file naming convention. This part is working just fine. I am having problem though with customizing the logging of it. I have the batch file running as a service under Windows 2003R2 so it is running continuously. I need to include the file name, the destination directory it is being copied to and the time of day it was copied there. These don't appear to be options within Robocopy. I have since tried the same script using the copy and XCopy commands within Windows and am unable to get this working with these either. Ultimatly, I would like to have the log file as a CSV or TAB file to be able to further massage the data in Excel or a DB of some kind.
Any help with this level of customization would be appreciated. I do not consider myself a scripter/coder by any means.
June 5, 2009 8:11 PM
June 25, 2009 4:43 PM