Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to find a file with the exact name?

14 Nov 2010   #11
gilmoses

Windows 7 Professional 64 bit
 
 

'filename' is indeed legitimate, no argument here. I meant to say that it didn't work in trying to reduce the search results.
And, it's not that I have hundreds of 'GM' files or 'a' files, I simply generalized the problem I was having.

Now, using filename:a I get the following:


How to find a file with the exact name?-where-file.png

Using filename:"a" (added quotes) I get:


How to find a file with the exact name?-where-file-2.png

Better, however I got lucky this time and my file is second. But who guarantees I'll get lucky next time?
And why can't Windows simply display only the files I'm looking for?

Thanks,
Gil.




My System SpecsSystem Spec
.
14 Nov 2010   #12
Kari

 

First, an important thing to remember is that when searching from Start menu's search box, it searches only the indexed locations. To search whole computer, also non-indexed locations, use search box in Computer's Explorer-window.


Then the search principles.
  • filename:gm
    • finds files where gm is filename or a part of it
    • gm_1.jpg, test_gm.txt, gm.doc, myGMfile.pdf etc.
  • filename:gm AND type:image
    • finds all image files where gm is filename or a part of it
    • gm_1.jpg, test_gm.png, gm.gif, myGMfile.bmp etc.
  • filename:gm.*
    • finds files with exact filename gm, with any extension
    • gm.doc, GM.png etc.
  • filename:gm*.*
    • finds files where the name starts with gm, followed by none or any number of characters, with any extension
    • gm_testfile.pdf, gm1.doc, gmreallylongfilename.txt, gm.jpg etc.
  • filename:gm????.*
    • finds files with a 6 character name beginning with gm, any extension
    • gmtest.txt, gmimag.jpg etc.
  • filename:gm*.doc
    • finds files where the name starts with gm, followed by none or any number of characters, with extension .doc
    • gmtest.doc, gmfollowedbyalotofcharacters1.doc etc.
So, an asterisk (*) replaces any number of characters, a question mark (?) one character. When using search parameters AND, OR & NOT, these must always be written in caps, otherwise searchs thinks they are just words to search.

Hope this helps.

Kari
My System SpecsSystem Spec
14 Nov 2010   #13
gilmoses

Windows 7 Professional 64 bit
 
 

Hi Kari, but how do you find a file without an extension, say, 'a'?
Here's what I get when I use 'filename:a.*' :

How to find a file with the exact name?-where-file-3.png

As you can see, my 'a' file was not found!

Gil.


My System SpecsSystem Spec
.

14 Nov 2010   #14
Kari

 

That's difficult. I would like to think I'm quite experienced Windows Search user, but I really have not a clue how to pinpoint a search to find a certain file if that file has no extension. Made some tests just now, was unable to find a way.

The only way I can think of is to search filename:a, which of course is not good because it shows all the files where letter a appears in filename.

A good example why it's important to use extensions?

Kari
My System SpecsSystem Spec
14 Nov 2010   #15
gilmoses

Windows 7 Professional 64 bit
 
 

It looks to me just like a simple deficiency in Windows 7 implementation...
No Microsoft moderator here to defend Win 7?

Gil.
My System SpecsSystem Spec
14 Nov 2010   #16
Kari

 

This might work, I know for sure when my laptop has finished re-indexing:

- Open Control Panel > Indexing options
- Click Advanced
- Choose File Types tab
- Ad an empty extension by typing a dot to Add a new extension to list, click Add
- Click OK, click Close

How to find a file with the exact name?-indexing.png

Kari


My System SpecsSystem Spec
14 Nov 2010   #17
mitchell65

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

I'm feeling a bit thick this evening but I have never created a file without an extension. Can someone explain how to achieve this and more importantly why should anyone want to create a file with no extension?
My System SpecsSystem Spec
14 Nov 2010   #18
Kari

 

Quote   Quote: Originally Posted by mitchell65 View Post
I'm feeling a bit thick this evening but I have never created a file without an extension. Can someone explain how to achieve this and more importantly why should anyone want to create a file with no extension?
Exactly. As I said earlier:
Quote   Quote: Originally Posted by Kari View Post
A good example why it's important to use extensions?
My System SpecsSystem Spec
14 Nov 2010   #19
mitchell65

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Thank Kari but I would just like to know how its done, just curious really!
My System SpecsSystem Spec
14 Nov 2010   #20
Kari

 

For instance in Notepad:
- File > Save As
- Type the name you want to without extension or with an extension of your choice
- Choose Save as type: All files (*.*)
- Click Save

This example would save the file with the name Test, with no extension:

How to find a file with the exact name?-save_no_extension.png

This would save the the file with the name Test, with extension .zzz:

How to find a file with the exact name?-save_my_extension.png

Kari


My System SpecsSystem Spec
Reply

 How to find a file with the exact name?




Thread Tools




Similar help and support threads
Thread Forum
Windows can't find the file when trying to run a .bat file
When I double click a .bat file windows says it can't find it, but if I do a direct access to the file then it runs it without any problem. Any idea? Tanks!
General Discussion
Which File? (The system cannot find the file specified)
I have a Windows 7 driver installation question that has been nagging me for awhile. I now turn to the forums for help. If I try to install a driver and not all of the driver files are present, I will get the error message "The system cannot find the file specified." But the problem is that it...
Drivers
How do I find which file is damaged?
I did a error scan with HD Tune Pro on a 2TB WDEADS20 and it says that error at 63248 MB. The health status says I have 16 unstable sectors. How can I find which file is damaged before backing up my files to another drive?
Hardware & Devices
Can't find a file
Hey Guys, So, I did something kind of silly and I'm hoping that one of you can help me out. A friend sent me an attachment word document in my gmail. I clicked "Download" and when promped by IE to "Open" or "Save", I clicked "Open" and proceeded to make a lot of edits to the file. When I...
Microsoft Office
File Transfer Dialogue: Exact Time
Hello, I've noticed since my upgrade to Windows 7 that when a file transfer dialogue is going, I'll see the dilaogue populate "Time Remaining: About 45 minutes" for example. Is there a way to get windows to display the exact calculated time, rather than "about x minutes"?
General Discussion
Can't find the FSX.CFG file
Does anyone know how to find the fsx.cfg file for FSX in Windows 7. I have tried to search for it and it is no where to be found. It's not in the same place as vista. I have installed FSX in it's own partition.
Gaming


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:48.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App