Skip to the content.

CleanFolders

Opens an MS Windows mini-application for providing a quick and easy-to-use mechanism for deleting extraneous files and/or folders from within a given Visual Studio solution folder.

This application is not limited to just Visual Studio solution specific files and folders, i.e., it can also be used to methodically delete other files and folders of a particular name or extension.


The following shows the Clean Folder… context menu item being displayed when right-clicking a folder in Window’s Explorer:

Image2


Launching this application directly or by selecting Clean Folder… context menu opens a window such as:

Image1

Notice that certain items in the tree view are automatically checkmarked and highlighted in red.

These items correspond to the ‘Folder Names’ and ‘File Extensions’ containing checkmarks inside the ‘Auto-Select’ group box.


Not so obvious, but there is available a ‘context menu’ when right-clicking anywhere on the main listbox as shown here :

Image3

From this context menu you can:

1) Physically delete the currently selected item or items from disk. 
(Note: A confirmation dialog is displayed prior to the delete actually being performed.)

2) Expand or collapse all the items displayed in the list at one time.

3) Uncheck all the items in the list.

4) Open an 'Options' dialog:

Image4

A Window’s context menu item is available for quickly launching this application by right-clicking a selected folder inside ‘MS Windows Explorer’.

The ‘Clean Folder Options’ dialog is displayed when selecting ‘Options…’ from the context menu defined above:

Place a checkmark beside the “Show ‘Clean Folder’ context menu…” control; then click the ‘OK’ button to have the Clean Folder… context menu item automatically added to Window’s Explorer.

(NOTE: This same context menu item can also be manually added to Window’s Explorere by launching the “CleanFolders.reg” file included in this solution folder).

5) Show the 'Properties' window associated with a selected item:

Image7

6) Show the About box dialog:

Image5

Other Notes

A folder can be dragged directly onto this application or opened from within the application itself by clicking the ‘folder’ icon button located adjacent to the folder path.

This application is also aware of any changes being made (outside of the application itself), to all the files and folders located in the parent folder and child folders:

Image6