|
||
|
|||||||
| FAQ Forum A place to find answers to the most frequently asked questions, and a place to post said answers. Do NOT use this forum to ask questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
This was originally posted by CrazyJester here (All credit goes to him):
How do I search my .cs files for a string In Windows XP, the "Find in Files" or "Containing Text" options will no longer search all file types for the string you give them, and .cs is not supported by default. This guide will allow you to search through .cs files, you can use the same process for any file type, or if you want to set it up to search all file types again, look under Method 2 in the reference link at the end of this post(This FAQ is mostly paraphrasing that document) *** WARNING *** This involves modifying the registry. Before you alter the registry, make sure that you understand how to restore the registry if a problem occurs. If you use the Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Use the Registry Editor at your own risk. *** WARNING *** First off, open up the Registry Editor by opening the start menu, then clicking "Run...". Type in "regedit" and click OK. Make sure you've read the above warning before doing anything with this program. 1. Click the + next to HKEY_CLASSES_ROOT 2. Scroll down to .cs and use your right mouse button to click on it. A menu will pop up saying "New >". 3. Put your mouse cursor over the "New >" and a new menu will pop up with "Key", "New String Value", "New Binary Value", etc, etc 4. Click on "Key". You should see a new key (looks like a folder) saying "New Key #1" or something similar. 5. Rename the "New Key #1" to "PersistentHandler". (If you are unable to type a new name, right click on "New Key #1, and click Rename in the menu that pops up) 6. Click on the newly renamed "PersistentHandler" folder. 7. In the right hand pane, you will see a entry called (Default) with data set as (value not set). Double click this or right click and select Modify. 8. under "Value data:" in the window that opens, put the following, including the curly braces: {5e941d80-bf96-11cd-b579-08002b30bfeb} 9. Click OK, and close the Registry Editor. 10. Restart your computer. You should now be able to use the "Containing Text" function of Windows XP Search to find the files that contain whatever string you're looking for. For more information, you can see the source article from Microsoft at http://support.microsoft.com/default...us;309173& Last edited by tobyjug; 02-14-2006 at 09:06 AM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|