Please register or login. There are 0 registered and 528 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s October 19 - 05:23am EDT 
Hardware Analysis
Forums Product Prices

  Latest Topics 

More >>


  You Are Here: 
/ Forums / Windows 7 /

  Windows7 Search through only Folder Names 
 Date Written 
binar Jul 06, 2012, 11:07pm EDT Report Abuse
Fellow Forum Members,
I have around 2,000 artist names setup as folders in my Windows7 OS. Some folder names repeat and I want to cull them out. How do I get Windows 7 to perform a search only at the folder level and ignore all of the files contained within the folders? In other words, I don't want Windows 7 to do any searching inside the folders, I just want it to focus only on searching through 2000 folder names contained inside one folder. Any tips will be greatly appreciated. Thanks.

Want to enjoy fewer advertisements and more features? Click here to become a Hardware Analysis registered user.
binar Jul 06, 2012, 11:34pm EDT Report Abuse
>> Re: Windows7 Search through only Folder Names
Just an update.

Through some research I learned that if I type this command in the SEARCH field: "type:folder NAME" (where "NAME" is equal to the folder name text string you want to search for) Windows 7 looks only through folder names and ignores files contained inside folders.

However, the problem is that it's also searching for folder names nested within folders that share the same "NAME" text string. I only want it to conduct a search restricted only to the folder names located at the ROOT level.

This task can be done using the Window 7 DOS command prompt window. However, I want to use the Search field in the WIndows7 Windows Explorer GUI. The only options I can access right now, is 'Date Modified' and 'Size'. Any help appreciated. Thanks

john albrich Jul 07, 2012, 12:40am EDT Report Abuse
>> Re: Windows7 Search through only Folder Names
Isn't there an checkbox option to NOT search "subfolders"?...or am I thinking of one of the Windows Explorer alternative XYplorer or Xplorer2? I'm currently on an XP machine so can't check Win7.

john albrich Jul 07, 2012, 12:52am EDT Report Abuse
>> Re: Windows7 Search through only Folder Names
Also, one can use the command shell to limit results to the "current" folder and to search for "folders", excluding subfolders...However, if there are files that don't have an extension, they too will show up in the output.

c:\ dir *.

To include subfolders in the search one must specify to do so...
c:\ dir *. /s
(there is a space between the . and the /s )

Redirect the output from the shell command to a file or printer and you've basically got your list.

The "dir *." isn't perfect as it includes filenames that don't have extensions, but it's most of the way there.



  Topic Tools 
RSS UpdatesRSS Updates

  Related Articles 

A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.