|I'm using a program called Wizard's Apprentice to create a GUI for my batch file.|
The batch file just copies files from one spot to another while displaying a progress bar.
However, the progress bar has a 'Cancel' button on it, and I can't get the program to check if it's pressed while copying the files.
My code looks like this:
ECHO A | xcopy "%file%" "%location%"
When pressed, the cancel button sends out an Errorlevel 2, but I don't know how to check for
an errorlevel while it's copying the files. Anyone got any advice?
Thanks in advance. :)