Jump to content

Batch file to remove files & folders?


Recommended Posts

Posted

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


Posted

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.

Posted

Yeah, you are right, thanks. Finally I can do as many clean instalations as I want. :D

rd /s/q "C:\New Folder"
rd /s/q "C:\New Folder (2)"
erase "C:\New Text Document.txt"

  • 5 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...