How to skip error found in a batch-file and continue executing the command line?
I'm using the Windows Command Processor, (cmd.exe), to scan all the files in a server. My goal is to have a .txt file with name files and where they are located, (for a faster search).
The batch-file commits its goal, but if I find a folder I have no access, the batch-file stops working. It does write and save the last found files but can't continue.
Is there a way to skip the Access denied error and continue scanning the server?
P, Z and R are some of the mapped network drives in my PC.
Browse other questions tagged batch-file cmd windows-console or ask your own question.