Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? Skip removing directory (RMDIR) without error message

Oct
31
0
RMDIR or RD with /S asks "Are you sure (Y/N)?"

Enter "Y" and RMDIR deletes the directory, subdirectories and files in it. No problem.

Enter "N" and RMDIR gives the error message "The directory is not empty" and terminates the batch file instead of not executing RMDIR and proceeding with the next line in the batch file.

Question: How the skip this error message?
 

Similar threads

Back
Top