Batch file/XCopy Dependencies

31 Views Asked by At

I am working on modifying an existing batch file. I want to copy over a file depending on whether there is a newer version of it from the source directory to a local machine. This works fine. I would like to then lock that file depending on if it was copied. If there was no copy, then simply move on to the line. How do I run a command based on if the output of xcopy was "1 File(s) copied" ?

Not sure on how to work use the output of the xcopy process to determine the next steps

0

There are 0 best solutions below