Hi

I have a batch file which opens all the files in a specific directory one by one and process them in a way. A commandbutton is added on the batch file which ,when clicked, starts the process. The directory may contain the files to be processed either one or maybe 100 (even more than that).
What I need is to have a toggle button on the batch file with the value of which if true should pause the process and if false then resume the batch process right from where it was paused.
What can be the best practice to achieve "PAUSE/RESUME" the process.if a file is in the middle of process.

Help and suggestions will greatly be appreciated.

Best Regards
Imran Bhatti