Ish*_*mas 3 windows command batch-file batch-processing windows-console
I'm trying to write a windows script that will remove every bin and obj folder in my project folder. It just doesn't work..
I found this:
for /d /r . %d in (_svn) do @if exist "%d" rd /s/q "%d"
so I've tried:
for /d /r . %d in (bin) do @if exist "%d" rd /s/q "%d"
Run Code Online (Sandbox Code Playgroud)
but it didn't work. The closest I've been is:
FOR /D %%p IN ("C:\temp\test\*.*") DO rmdir "bin" /s /q
Run Code Online (Sandbox Code Playgroud)
it removes bin folder from first layer, but not in subfolders
Thanks for help
像这样:
for /d /r . %%d in (bin obj) do @if exist "%%d" rd /s/q "%%d"
Run Code Online (Sandbox Code Playgroud)