want to filter by file type, and search by file name

rgb192
rgb192 used Ask the Experts™
on
search in windows 7


I type in
'search term'
in start menu

and then
'see more results'

but there is no filtering by file type
 If I am looking for a php file
I type in php
and get .txt where php is in

I only want to search for .php files with file name 'hello'

so

hello1.php
hello2.php
hello3.php



or

search for .php files with 'hello' in contents
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
To search for all files with name hello and are PHP type just insert:

hello*.php

if you want to search PHP files containing "hello" input:

hello kind:php

For more option see Advanced Query Syntax

Author

Commented:
hello*.php

returned  .html files without hello in the title
In this case you may have some problems with your searching engine and I would recomment the Microsoft Troubleshooter - see steps here: How do I troubleshoot problems with search and indexing

When you will start the troubleshooter, in the next step check the option named "Files don't appear in search results". It may fix the problem...
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Top Expert 2011
Commented:
The FREE app Everything Search Engine by Void Tools may very well be of interest to you.  I have been using it for quite some time now.  I discovered it when Windows XP was the current Windows OS and I found the Dog in Microsoft's included OS search function just didn't do a good job at all in spite of all his sniffing and scratching.  That Dog just didn't hunt.  It created more frustration than results.

This app is only 335kb to download yet it finds things on your system easily and instantaneously as you type while consuming almost no resources.  Task Manager reports 2,280kb of memory and zero CPU cycles when it is running in your system tray in the background.

In order for it to automatically start up with Windows 7, I had to author a "Task" for Win 7 to bypass the stringent permissions of the OS and avoid authorizing it all the time.  This Task can be "imported" into the Task Scheduler and I could post the necessary file should you want it.
Top Expert 2013
Commented:
rgb192
FWIW--A tutorial on Windows 7 Search.
http://www.thelongclimb.com/win7powersearch.pdf

Author

Commented:
thanks
Top Expert 2011

Commented:
Regarding Everything Search Engine.

The following code is the result of the "Task" I authored to start the engine with Windows.  The task automates the User Account Control prompts allowing the application to run in the system tray beside the clock without manually intervening every time the system starts up.  I have shown the raw code only so you may see what is inside the attached importable XML file.

NOTE that my Window 7 is 64 bit, hence the C:\Program Files (x86)\ shown in the code near the bottom for the "path" to the executable and the Working Directory.  If your Windows 7 is 32 bit, you will need to open the XML (in notepad) and correct the paths to read C:\Program Files\ removing the (x86) so you don't get "not found" errors.

There is a also check box in the search engine application on the "General" Tab under the Tools menu when "Options" is selected.  The check box option to "Start Everything on startup" is selected by default.  This needs to be UNCHECKED so the Task you import can take over that function and avoid a double request for the engine to launch; a request that will trigger the annoying User Account Control prompts and a second instance of the application.

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2011-07-07T23:21:21.4915136</Date>
    <Author>Jim-PC\Jim</Author>
    <Description>Search Tool</Description>
  </RegistrationInfo>
  <Triggers>
    <LogonTrigger>
      <Enabled>true</Enabled>
      <Delay>PT30S</Delay>
    </LogonTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <GroupId>S-1-5-32-544</GroupId>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>StopExisting</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>true</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
    <Priority>7</Priority>
    <RestartOnFailure>
      <Interval>PT1M</Interval>
      <Count>3</Count>
    </RestartOnFailure>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>"C:\Program Files (x86)\Everything\Everything.exe"</Command>
      <Arguments>-startup</Arguments>
      <WorkingDirectory>C:\Program Files (x86)\Everything\</WorkingDirectory>
    </Exec>
  </Actions>
</Task>

Open in new window


Again, the above code is shown only to illustrate what is inside the attached XML file.

To import the task on your system:

Download the attached Search Everything.xml file to a convenient location on your computer.

Click Start and start typing

Task Scheduler

into the Search box.  Task Scheduler should appear in the results so you may launch it from the search results.

Alternatively, Task Scheduler can be found in Control Panel under the Administrative Tools.

When Task Scheduler is running, choose the Action Menu and select "Import Task"

Navigate to where you saved the attached XML file and "Open" the "Search Everything.xml" file.

That's all.  Now when your system starts, the search engine will run in the background.  It uses so very little resources, you wont even notice it running.  You can also "Customize" the icon to always show, then when you need to use it, just double click on the icon now showing in the tray.

Search-Everything.xml

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial