IcemanND Posted December 15, 2006 Share Posted December 15, 2006 add a pause to the CMD script, and enclose the folder in quotes, also remove the /q so you can see any possible errors:RD /S "C:\New Folder"pause Link to comment Share on other sites More sharing options...
TheTOM_SK Posted December 15, 2006 Author Share Posted December 15, 2006 Awesome, it works now. Thank you for your great help. ECHO Y | RD /s "C:\New Folder"ECHO Y | RD /s "C:\New Folder (2)"ECHO Y | erase C:\File.txt Link to comment Share on other sites More sharing options...
IcemanND Posted December 15, 2006 Share Posted December 15, 2006 if you put the /q back in then you can eliminate the "echo y |" most likely problem was because of the space in the path. the /q will bypass the confirmation. Link to comment Share on other sites More sharing options...
TheTOM_SK Posted December 15, 2006 Author Share Posted December 15, 2006 Yeah, you are right, thanks. Finally I can do as many clean instalations as I want. rd /s/q "C:\New Folder"rd /s/q "C:\New Folder (2)"erase "C:\New Text Document.txt" Link to comment Share on other sites More sharing options...
MgmTest Posted January 17, 2012 Share Posted January 17, 2012 Hi.Me Need Code For Found (Search) And Delete Drive And Folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now