Launch Chrome with a keyword search using Run command in Windows
I can run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" superuser.com
to start Chrome and launch this particular website.
But instead of launching a website, I want to search for a keyword using the default search engine configured.
Note: I don't want to manually specify the search engine URL in Run command like "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" www.google.com/search?q=hello+world
.
Is there any command line argument or some trick to do this?
Solution 1:
It seems that the thing you specify as the URL, doesn't really need to be a URL.
Then, you can easily do this:
chrome "? hello world"
The ?
will prevent the browser from thinking it's a path, without interferring in the search keywords (as explained here).
Solution 2:
start chrome "? <what you want to search>"
This works if start chrome works.