I use a batch file to xcopy files from one source to several destinations on a weekly basis..using this command for each file...
xcopy /d/y %source%sp6501.wav %path1% >>report.txt
I use this command on over 100 audio files and so the report.txt file is very long and some weeks most of the files are not copied becuase they do not get changed, so I end up with a report.txt file with tons of "0 File(s) copied" lines.
I would like to eliminate the "0 File(s) copied" lines from the txt file before it gets emailed, which is handled at the end of the batch using blat. So how do I either get the xcopy NOT to write the report.txt if the file does not get copied or maybe just have the batch go back through the report.txt file at the end of the batch job and delete all of the 0 lines it before it emails. Whichever is easiest is what I want to go with.