Write a dialog based application in Visual Studio using MFC which will recursively scan hard drive from start location and look for specified files and directories.
Root Directory - Path to directory where the search will start.
File Mask - Text that will be searched in file/directory names. Wildcards like * and ? can be used.
Start - Clicking in the Start button will open new modeless Search window and initiate the search.
Caption of the Main Window will contain following text:
Running Searches – N
Where N is the number of actually running searches, it doesn’t include open Search windows that already have finished searching the hard drive. That number will be updated every time when new Search is initiated or when any of the Searches finishes.
Pause - Clicking Pause button will pause the search and change
of that button to Resume. Clicking it again will resume the search and change the caption back to Pause.
Stop - Clicking the Stop button will immediately stop the search and disable the Pause and Stop buttons.
Caption of the Search Window will contain path to directory that is currently being searched followed by back-slash and File Mask with which the Search has been initiated.
Search Results - List of found files containing two columns. First column will contain first letter of file attributes (for example RHA for Read Only, Hidden and Archive). Second column will contain full path to the file. The list should be set up as multi-selection. The list will be sorted ascending by file path. Right click on list item will bring up a pop-up menu with two options:
Open - will execute selected files. Non executable files should be opened with program associated with their extension.
Remove - will remove selected files from the list.