I am generating a copy command file based on the files available in my source folder and
using the copy file generated i am creating the extensions to the file.But the files in my source folder will be updated by a batch due to which some of the files will be renamed.
Below is one of my copy command, I will have 70,000 lines in my actual copy command file.
COPY C:\FolderA\001587985 C:\FolderB\001587985.pdf
After the file is genrated I am executing this and while executing if the actual file got renamed i will get an error "The system cannot find the file specified."
so What I want to do is if I get the above error I want to genarate a log.txt with the file name.
The system cannot find the file specified
I want to capture the 0534124585 file name in a serparete logfile.txt.
How can I write a btach script for this.