[SOLVED] Automatically copy a filename and launch a web search about the file

Status
Not open for further replies.

mcqc

Distinguished
Mar 9, 2010
45
0
18,540
I would like to do it via the explorer context menu when I right-click on the file, possibly with a batch file or VBS ? and add it with "Easy context menu" Did Anyone know a way to do it ? Any help would be appreciated
 
Last edited:
Solution
Google search any files or folders on your computer. Show/Hide File Extensions.

-Download and install Autohotkey

-Open Notepad

-Copy and paste this code

Code:
FileName=%1%
FileName:=RegExReplace(FileName,"&","%26")
FileName:=RegExReplace(FileName,"#","%23")
SplitPath FileName,Name
Run h t t p s://www. google. com/ search?q=%Name%
(You have to remove the spaces in Web address)

-Save as "Google Search (Show File Extensions).ahk"

-Close Notepad

-Right-Click on it, Click Compile script.

-Create a shortcut to that and remove the .exe from the shortcut; copy or move that to the "Send to" folder
"C:\Users\[username]\AppData\Roaming\Microsoft\Windows\SendTo\"




-Open Notepad

-Copy and paste this code

Code:
FileName=%1%...

mcqc

Distinguished
Mar 9, 2010
45
0
18,540
Google search any files or folders on your computer. Show/Hide File Extensions.

-Download and install Autohotkey

-Open Notepad

-Copy and paste this code

Code:
FileName=%1%
FileName:=RegExReplace(FileName,"&","%26")
FileName:=RegExReplace(FileName,"#","%23")
SplitPath FileName,Name
Run h t t p s://www. google. com/ search?q=%Name%
(You have to remove the spaces in Web address)

-Save as "Google Search (Show File Extensions).ahk"

-Close Notepad

-Right-Click on it, Click Compile script.

-Create a shortcut to that and remove the .exe from the shortcut; copy or move that to the "Send to" folder
"C:\Users\[username]\AppData\Roaming\Microsoft\Windows\SendTo\"




-Open Notepad

-Copy and paste this code

Code:
FileName=%1%
FileName:=RegExReplace(FileName,"&","%26")
FileName:=RegExReplace(FileName,"#","%23")
SplitPath FileName,Name,Dir,Ext,NameNoExt
If InStr(FileExist(FileName),"D") ;Dir?
  Run h t t p s://www. google. com/ search?q=%Name%
Else                              ;File
  Run h t t p s://www. google. com/ search?q=%NameNoExt%

(You have to remove the spaces in Web address)

-Save as "Google Search (Hide File Extensions).ahk"

-Close Notepad

-Right-Click on it, Click Compile script.

-Create a shortcut to that and remove the .exe from the shortcut; copy or move that to the "Send to" folder
"C:\Users\[username]\AppData\Roaming\Microsoft\Windows\SendTo\"

-To use the script right-click on any files or folders, Click on "Send to", Click the shortcut.
 
Last edited:
Solution
Status
Not open for further replies.