I have a batch file I've written that copys a file every night over our VPN from each of our stores to the server. The problem is that if there's an error then I don't know it. Is there a way using a switch or DOS to generate a log.txt file only if there's an error such as if the VPN were down? Below is an example of my file at present.
copy "\\192.168.2.121\Title Loan Professional Plus\database\titleloan2k_be.mdb" N:\Athens /y /z