How do you define search kind extensions for searches?

Page 1 of 2 12 LastLast

  1. Posts : 31
    Win10
       #1

    How do you define search kind extensions for searches?


    How do you define an Image when you search?

    For example, when I search and use 'kind:=picture', I get a my autocad .dwg files in my search results as well as .jpg, .gif etc

    So, how do you tell Windows, which file extensions constitute a picture (or any other file extension for that matter)?

    Thanks
    Windows version 1903 (build 18362.836)
      My Computer


  2. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    I have never succeeded in changing a file's Kind.

    But you could search for something like this example
    Code:
    *.jpg OR *.png

    Denis
    Last edited by Try3; 29 May 2021 at 13:15.
      My Computer


  3. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #3

    Hi, 'kind' relates to 'perceived type' held in the registry against certain file types.

    What is the purpose of "Perceived Types" in Windows 7-10? - Super User
    https://docs.microsoft.com/en-us/pre...44150(v=vs.85)

    If you wish to search for a selection of file types you could do this:

    type:jpg OR type:bmp

    and append your particular search criteria.

    Or you might prefer to exclude just one file type e.g.

    s* NOT type:dwg

    would find all files begining s excluding dwg files.
      My Computers


  4. Posts : 31
    Win10
    Thread Starter
       #4

    Thanks guys, very interesting read.

    You might have thought that Microsoft would have built in a way to change the perceived types as it is not unreasonable for new extensions to come in to existence which would fall in to different categories especially when you are using for a specialist purpose but then again under these circumstances I guess you'd be better off with a document management system rather than Windows!!
      My Computer


  5. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    cosmarchy said:
    Thanks guys, very interesting read.
    You might have thought that Microsoft would have built in a way to change the perceived types as it is not unreasonable for new extensions to come in to existence which would fall in to different categories especially when you are using for a specialist purpose but then again under these circumstances I guess you'd be better off with a document management system rather than Windows!!
    Applications register file types [see the second of dalchina's links]. I do not know how they do it but it is not merely by adding to the list in
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\KindMap
    because that's how I tried to do it and it had no effect on my search results.
    - I renamed a [picture] file with a file extension .abc and added that extension to that Registry list.
    - I rebooted and repeated a Kind:picture search I had done beforehand. Only my original files were identified. The faked .abc file was not.


    Denis
    Last edited by Try3; 29 May 2021 at 13:49.
      My Computer


  6. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    A bit more:
    https://docs.microsoft.com/en-us/pre...30739(v=vs.85)
    https://docs.microsoft.com/en-gb/win...ectedfrom=MSDN

    There seems a link to the PerceivedType value present for some common file types e.g.
    How do you define search kind extensions for searches?-1.png

    You can use this free program to readily see which file types are associated with a given perceived type:
    How do you define search kind extensions for searches?-1.png
      My Computers


  7. Posts : 31
    Win10
    Thread Starter
       #7

    Try3 said:
    Applications register file types [see the second of dalchina's links]. I do not know how they do it but it is not merely by adding to the list in
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\KindMap
    because that's how I tried to do it and it had no effect on my search results.
    - I renamed a [picture] file with a file extension .abc and added that extension to that Registry list.
    - I rebooted and repeated a Kind:picture search I had done beforehand. Only my original files were identified. The faked .abc file was not.


    Denis
    May be due to indexed information which needs to be refreshed perhaps?

    - - - Updated - - -

    Yep, got it.

    It's due to indexed information.

    I used FileTypesMan to change PercievedType to 'Document' and then went to Folder properties --> Advanced --> untick index --> apply changes, back to Advanced --> tick the index files option again which forces re-index of that folder only rather than a re-index and now the .dwg shows up as a 'Document' and not a 'Picture'.

    Thanks for your help guys
      My Computer


  8. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    Did altering its file association, as you did, also alter its entry in
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\KindMap
    ?

    Denis
      My Computer


  9. Posts : 31
    Win10
    Thread Starter
       #9

    Changing in the registry had no effect. It was not until I changed using FileTypesMan did work.

    Must be something int he background at play here...
      My Computer


  10. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    Yes, changing file associations sets more Registry entries than the file association ones.

    I've found this discussion interesting, thanks.

    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:28.
Find Us




Windows 10 Forums