4

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".

3 Answers 3

0
  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.

1
  • 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, 2012 at 17:54
0

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.

0

PowerShell:

Get-ChildItem *.ini -Recurse -Force -ea Silent | Select DirectoryName

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .