Add Google Search Option to the Right-Click context Menu Win. Explorer


  1. Posts : 24
    windows 10
       #1

    Add Google Search Option to the Right-Click context Menu Win. Explorer


    How to Add Google Search Option to the Right-Click context Menu in windows Explorer. I didn't find anything online. Example, right click on mp3 file, click google search option to launch a web search about the mp3 song. Did Anyone know a way to do it ?
      My Computer

  2. dalchina's Avatar
    Posts : 30,358
    Win 10 Pro (1903)
       #2

    Hi, how do you do that? Below I give an example of using Sendto to perform a Google search for a file name.

    Otherwise, it depends what outcome you're trying to achieve as well. Are you trying to identify the mp3? Find tags for it? Lyrics? What sort of search are you wanting to do?
    - the file name
    - the content
    - the metadata...

    You would need to define more clearly what it is you wish to achieve.

    If you want to identify the mp3 from its metadata, consider e.g.
    Use MusicBrainz Picard to get metadata for your tracks – Live365

    Simply considering the file name alone- that is not straightforward at all.
    (And the file name may not be a useful way to identify the mp3 anyway).


    You would need to
    - find or create a utility or script that constructs an appropriate URL and launches your default browser
    - add a context menu entry pointing to that utility or script
    - pass the file name as a parameter to the script

    There are utilities to add context menu entries such as FileMenu tools, Easy Context Menu, ContextEdit.


    Here's how to search Google for a file name using 'Sendto' for example.

    Add Google Search Option to the Right-Click context Menu Win. Explorer-untitled.png

    I've rt clicked a mp3 file, Sendto - in the Sendto options you'll see a shortcut I added - 'Google.exe'

    Google.exe is a compiled AHK script which launches a Google search for the filename in my default browser.

    (You can see Easy Context Edit there too if you wanted to create a context menu entry- but for any file- it does not allow specifying by file type- ContextEdit can do that- ancient, but works).

    a. AHK script
    Inputpath=%1%
    Msgbox, Inputpath=%Inputpath%
    SplitPath, Inputpath,FileName,

    Run h t tp://www.google.com/#hl=en&q=%Filename%

    (Had to add spaces in http else tenforums represents this as a URL)

    b. Sendto folder contains a shortcut to my compiled script
    Add Google Search Option to the Right-Click context Menu Win. Explorer-1.png

    c: search result:
    Add Google Search Option to the Right-Click context Menu Win. Explorer-2.png
    Last edited by dalchina; 05 Mar 2020 at 02:25.
      My Computers


  3. Posts : 24
    windows 10
    Thread Starter
       #3

    dalchina said:
    Hi, how do you do that? Below I give an example of using Sendto to perform a Google search for a file name.
    Wow ! Thank you for the help. I'm using a google search to verify that MusicBrainz Picard is uploading the right cover art. Half the time there is no cover or it's not the right one. I copy paste the mp3 filename on google and click on the Wkipedia link or Google Image to see the cover.

    I think the method with sendto, Easy Context Menu, ContextEdit will be perfect. Which programs i need ? I'm confuse. Only Context Menu Editor ? Context Menu Editor 1.1 and 1.2 refuse to launch, it give me an error "only administrator can makes change to this computer" even if I click on run as administrator.

    Where I need to input the script ? I'm lost about the whole thing. Can you show me step by step, please ? Thank you very much for your help. It's very appreciated !

    - - - Updated - - -

    dalchina said:
    Hi, how do you do that? Below I give an example of using Sendto to perform a Google search for a file name.
    Ok, I manage to launch the program by clicking run in compatibility mode
      My Computer

  4. dalchina's Avatar
    Posts : 30,358
    Win 10 Pro (1903)
       #4

    Hi, if using Send to you don't need any context menu tools.

    To open the Send to folder, type
    shell:sendto
    in a Run box or file explorer address bar.

    Download and install Autohotkey, save the script to e.g.
    Google filename.ahk

    as a text file.

    Rt click, click Compile and you'll get
    Google filename.exe

    Create a shortcut to that and remove the .exe from the shortcut; copy or move that to the Send to folder.

    Then rt click you mp3 (or any file), click Send to, click Google filename
      My Computers


  5. Posts : 24
    windows 10
    Thread Starter
       #5

    dalchina said:
    Hi, if using Send to you don't need any context menu tools.
    Thank you. That's exactly what I wanted. To be absolutely perfect I would love to remove the extension from the search and remove the "ok" confirmation. would it be possible ?
      My Computer

  6. dalchina's Avatar
    Posts : 30,358
    Win 10 Pro (1903)
       #6

    Oh you can delete the Msgbox line- I left that in when checking the script, sorry.

    Here's an updated script that strips off the .extension and searches for file name only (attached in zip)
    Add Google Search Option to the Right-Click context Menu Win. Explorer Attached Files
    Last edited by dalchina; 05 Mar 2020 at 05:52.
      My Computers


  7. Posts : 24
    windows 10
    Thread Starter
       #7

    dalchina said:
    Oh you can delete the Msgbox line- I left that in when checking the script, sorry.
    The confirmation is gone now. Is it possible to remove the file extension in the search ? Also it would be great to see it directly in the context menu without having to go in send to.
      My Computer

  8. dalchina's Avatar
    Posts : 30,358
    Win 10 Pro (1903)
       #8

    See amended post above.

    You can give the shortcut a nice icon:
    Add Google Search Option to the Right-Click context Menu Win. Explorer-1.png
      My Computers


  9. Posts : 24
    windows 10
    Thread Starter
       #9

    dalchina said:
    See amended post above.
    Thank you. Absolutely amazing. The cherry on top would be able to see it directly in the start menu without having to go in send to. I think it will be great to add the tutorial on the site with all the other on the site. You guys are absolute Legends !
      My Computer

  10. dalchina's Avatar
    Posts : 30,358
    Win 10 Pro (1903)
       #10

    You're welcome. I learnt something about AHK.

    It wouldn't really be helpful in the start menu- as used, a parameter is passed to it. Running it from the start menu wouldn't achieve that.

    You could put it directly in the context menu as I mentioned e.g. using ContextEdit so it's there just for mp3's say- but I'd suggest it's not worth the effort.
      My Computers


 

  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 20:05.
Find Us




Windows 10 Forums