1.

Solve : Searching for specific folder?

Answer»

Hi,

Is there a command that I can use that will allow me to search specific folders? I NEED to search for specific folders on the server. I was thinking of using the tree command to get a list of the entire directory, then output it to a file and just search for the folders, but I thought there must be ANOTHER, easier way to do this. The FIND or findstr command seem to only search files, but I want to search one level up.

Thanks.
the dir command should be sufficient for your needs. please check dir /?, especially the /S SWITCH.
For example, if you want to search for files called "test.txt", starting from c: drive
Code: [Select]C:\TEMP>dir /S c:\ | findstr "test.txt"
09/03/2007 10:08 PM 466 test.txt.lnk
09/03/2007 10:04 PM 88 test.txt



Discussion

No Comment Found