Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This is on Windows-7.

I need to find all folders with specific files in them and list them preferably in Explorer. Is it at all possible, I seem to have hard time figuring this. This probably can be done from cmd or powershell, but I would prefer to have it done from within Explorer.

The search criteria is simply "all folders containing files with extension .ini".

share|improve this question
add comment

2 Answers

  1. Open Computer (aka My Computer)
  2. Navigate to c:\folder
  3. In the upper right, you will see a search box, with gray wording: Search folder
  4. input: *.ini and press enter

You will now see of all ini files in this directory and it's subdirectories.

share|improve this answer
    
Well, this far I got myself, but this gives me the list of files. What I need is a list of directories containing those files in search criteria. –  Damien K May 7 '12 at 17:54
add comment

You might be able to solve your problem using PowerShell. I am not home at the moment and have no access to PowerShell, so I can check this solution inspired by this page at a later time only.

dir -recurse | ?{$_.name -match “^*.ini$”} | sort name | ft directory

I can check up on the correctness of the answer later.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.