💻 Software
How to create batch file that delete all the folders named `bin` or `obj` recursively?
Fresh7 days ago
Mar 15, 202628028 viewsConfidence Score0%
0%
Problem
I have the need of deleting all & 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 , I got to the current solution (still having problem though, see our comments): Create a .b…
Error Output
start for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s/q "%%d"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to create batch file that delete all the folders named `bin` or `obj` recursively?
Low Risk
This has been previously answered over on Stack Overflow, which is where I've taken the main thrust of this answer from. Try the following command, you can run it from within : If you need other folders to be changed, then just add new items to the …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix