1

I'm trying to search for a certain file extension, .pro. I have tried the following searches in the search bars: type:.pro and *.pro, however, both of these queries yield files with the extension .properties and .project. I don't want these in my results. how do I exclude these?

tuskiomi
  • 854

1 Answers1

2

I'm trying to search for a certain file extension, .pro

I have tried the following searches in the search bars: type:.pro and *.pro, however, both of these queries yield files with the extension .properties and .project.

This is not possible using the Windows Explorer search bar, even when using Advanced Query Syntax.

However, it can be achieved in a cmd shell, with the following command:

dir /b /s | findstr /e /l /c:".pro"

Example:

> dir /b /s *.pro
F:\test\.pro
F:\test\test.pro
F:\test\test.profile
F:\test\test.properties
F:\test\test.project

> dir /b /s | findstr /e /l /c:".pro"
F:\test\.pro
F:\test\test.pro

Further Reading

DavidPostill
  • 162,382