title: How do I add a right-click option to search the web using a selected file's name?
body: <p>I'm looking to add an option to the right-click menu in Windows Explorer that will launch Chrome and search a specific site for that file's name.  To be a little more specific, I want to be able to do this on a video file and then look for available subtitles for it.  I'm aware that there are a number of programs that can do some variation of this, but after trying out a bunch of them, I haven't quite found what I want. Not only that, but I'd rather use some lightweight, native code than having to install another program.</p>
  
  <p>The closest thing to a guide that I've found is <a href="http://www.dslreports.com/forum/r29686640-" rel="noreferrer">in this post</a>, but it doesn't quite work.  Of course, I've tried cleaning it up for my needs, but it still doesn't work, so I think there's a flaw in there.  Here's what I have so far...</p>
  
  <p>Running Command Prompt as Administrator, I executed these two lines to add them to the Registry:</p>
  
  <pre><code>REG ADD "HKLM\software\Classes\*\shell\Subtitle Search" /d "Subtitle Search"
  REG ADD "HKLM\software\Classes\*\shell\Subtitle Search\Command" /d "C:\My Projects\My Code\SubtitleSearch.bat ""%1"""
  </code></pre>
  
  <p>The, I create a batch file (SubtitleSearch.bat) with the following:</p>
  
  <pre><code>set xGOOGLESEARCH=%~nx1
  cmd /c "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "http://subscene.com/subtitles/title?q=%xGOOGLESEARCH%"
  </code></pre>
  
  <p>That seems pretty straightforward, but it doesn't work.  Instead, <b><i>Windows thinks I'm trying to open the file</i></b> and asks me what program to use.  If I choose Chrome, incidentally, it actually starts playing the video in a tab.</p>
  
  <p>I'm convinced the problem is with the Registry code, but I can't figure out how to tell the system that I don't want to open the file I'm right-clicking on; I just want to use its filename.  I'm familiar with the Registry, but not skilled enough to see what the issue is.</p>
  
  <p>Thanks in advance for your help!</p>