/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


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

05/28/2012 19785 views

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.

Answer Summary:
rmdir c:\path\of\directory /S /Q Use multiple lines in one batch file and it will execute all commands.
0 Comments   [ + ] Show comments

Comments



Community Chosen Answer

4

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

Answered 05/29/2012 by: dugullett
Red Belt

All Answers

2

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

Answered 05/30/2012 by: piyushnasa
Red Belt

 
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