Cleaning Up a Folder Structure From Visual Studio Artifacts From the Shell
Join the DZone community and get the full member experience.Join For Free
A few years ago I wrote a post that showed how to write a NAnt script to clean a folder structure from the artifact’s folders used by Visual Studio.
Today what I wanted to show you is a way that doesn’t require NAnt installed on your computer, but that uses just a very simple command for Windows’ shell.
But without further ado, here it is:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folders"
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""
@="Delete Visual Studio Artifact Folders"
@="cmd.exe /c \"TITLE Removing BIN and OBJ Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (bin obj) DO RD /s /q \"%%f\" \""
To install it, all you have to do is copy the text above into a txt file, rename it to .reg and double click on it. And after that you will have two new commands that will appear in the right-click menu in Windows Explorer.
Published at DZone with permission of Simone Chiaretta, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.