• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days (this includes any time you see the message "account suspended"). For more updates please see here.

Windows 7 Search Files for Keyword

Kruelgor

Emperor
Joined
May 12, 2010
Messages
1,165
Location
The United States
Some people may not know this for Windows 7.

So you want to search and find all core civilization 5 XML files which contain a keyword embedded in the file.

In my case for example, I want to find all XML files in C:\Program Files (x86)\Steam\steamapps\common\sid meier's civilization which contain the word 'Bucharest'.

After selecting that Civilization 5 folder, you'll see the search box up in the upper right corner of your screen. Type content:"your keyword here" so in my case I will type content:"Bucharest"

It will then list all files which have the word Bucharest embedded within it. This will help me in my modding of the City State Bucharest.
 
The same thing can be done with Vista. With Vista, however, after your initial search without results, you'll then be able to prompt a search within file contents, and it will show you a list of all files with the keywords for which you searched.
 
The same thing can be done with Vista. With Vista, however, after your initial search without results, you'll then be able to prompt a search within file contents, and it will show you a list of all files with the keywords for which you searched.

I recall XP being easy with it giving you the option right there, but in Windows 7 it doesn't give you the option so you have to manually type in Content:"key word"
 
open up cmd. "cd /d" to where ever you want to start your search from and use findstr. It is the closest thing windows has to grep.

findstr /sim %keyword% *
 
Might not immediately, but it should once indexed. The reason it doesn't on its own is because the content has to be indexed otherwise it will be really slow. You can also do it by going to the indexing options in control panel (I use the search box to find it), selecting modify, find the directory under change indexed locations, and put a check next to the directory.
 
Back
Top Bottom