/build/static/layout/Breadcrumb_cap_w.png

How to delete multiple folders using rmdir command in bat file?

Hi All,

I want to delete some folders which are populated in

"C:\Documents and Settings\Admin\Application Data\Microsoft" and

"C:\Documents and Settings\Admin\Local Settings\Application Data\Microsoft" and

"C:\Documents and Settings\All Users\Microsoft" using a single batch file.

Please suggest me.


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
rmdir c:\path\of\directory /S /Q Use multiple lines in one batch file and it will execute all commands.
Posted by: dugullett 11 years ago
Red Belt
4

rmdir c:\path\of\directory /S /Q

Posted by: piyushnasa 11 years ago
Red Belt
2

use multiple lines in one batch file and it will execute all commands.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ