Delete bin and obj folder from projects directories

You always have problem to debug when you do latest from source control.You might end up deleting bin/obj folder sometime.Here is nice bat file which delete bin/obj folder(s).
1. copy this on notepad and save it as clean.bat file
2. Keep this file on root directory
3. Double check the directory on "DIR /B /AD /S obj" and "DIR /B /AD /S bin"
----------------------------------------------------------------------------------------------

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S bin') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

---------------------------------------------------------------------------------------------------

Try this some dummy folder and your ready to run.

 There is other way to use msbuilt but this one found easier for me.

 Thanks,

Suresh

No Comments