#VS2017 – Batch script to clean folders BIN / OBJ / BINARIES / PACKAGES

Hi!

Some time ago I created a Console App in .Net that cleaned all the temporary and build directories in a solution. This App was quite useful when I want to share something in a new repository on GitHub, using this App I saved a few minutes of search and delete.

Today I have found this excellent script with similar features, you only need to save this into a .bat or .cmd file

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”

FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S Binaries’) DO RMDIR /S /Q “%%G”

FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S packages’) DO RMDIR /S /Q “%%G”

Download file https://github.com/elbruno/Blog/tree/master/20180301%20clean%20script

Happy Coding!

Saludos @ Toronto

El Bruno

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s