This solutions fixes the problem where Search or Command Prompt opens when double clicking a folder or drive. Occasionally the Registry entry for File Folders (Directories) gets corrupted. One effect of this can be that Search or a Command Prompt opens when you double click on a folder or drive in Explorer, rather than the folder opening. This VB Script will make the necessary change to the system Registry to correct this.

Download the Drive_search_fix.vbs and save this file to your hard drive. Navigate to where you saved it and double click the file. A confirmation dialog will appear when finished. This script can be viewed in Notepad or any text editor, as to the specific Registry key and value that are updated. Here is the link to fix the drive opening to search or command prompt.