1
In Windows (base install: no extensions, tools, add-on's, or 3rd Party software) what is the fastest native way to search only filenames AND without modifying the "state" of indexing and/or changing the "state" of content search?
The fastest way I know to do this is in [Windows Explorer] to enter in the search box >>>
System.FileName:~="SomePartOfTheFilenameHere"
... and because I'm a geek, I'll typically paste the following in the search box >>>
System.FileName:~=""
... and then type into the quotes. I've found that on older machines (especially on a directory with no indexing, but "search in contents ON") even just typing in the box has an impact until System.FileName:
is fully typed out and causes the mice to spin, but by pasting it in it goes straight into "FileName Only" mode.
Does anyone know a faster / better way?
Although I don't know for sure, powershell may have some trick up its sleeves. – tumchaaditya – 2014-08-05T20:11:52.157
C:\>dir /s /b "filen*.*"
in a command prompt comes to mind. – LPChip – 2014-08-05T20:26:47.573@tumchaaditya PowerShell (http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx) afaik is not native/core and needs to be installed. If I'm correct, then in this case it would be excluded for the purposes of this question. Thanks though.
– George 2.0 Hope – 2014-08-05T21:51:19.4431@GeoBaj PowerShell is bundled with Windows 7 and later, but has to manually installed in previous operating systems. – and31415 – 2014-08-06T08:33:28.963