How to create batch file that delete all the folders named `bin` or `obj` recursively?
- by Nam Gi VU
I have the need of deleting all bin & obj folders in a folder on my PC. So, I'm thinking of a batch file to do that but I'm not famaliar with batching file in Windows. Please help.
[Edit]
After discussion with user DMA57361, I got to the current solution (still having problem though, see our comments):
Create a .bat file, and paste the below command:
start for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s/q "%%d"
OR
start for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s "%%d"
@DMA57361: When I run your script, I get the below error. Any idea?