Skip to content

Instantly share code, notes, and snippets.

@EvansWinner
Created January 19, 2021 19:59
Show Gist options
  • Save EvansWinner/b1a2e6edd1ec862c8b5f45946a01962b to your computer and use it in GitHub Desktop.
Save EvansWinner/b1a2e6edd1ec862c8b5f45946a01962b to your computer and use it in GitHub Desktop.
@echo off
:: Example:
:: > wsearch.bat foo bar
:: Opens Chrome with Google search for 'foo bar' (without the quotes)
:: Change variable %chrome% to match your path to Chrome if this isn't right.
:: Chage the %url% if you are not using the US / English language Google URL.
set chrome=C:\Progra~2\Google\Chrome\Application\chrome.exe
set url=http://www.google.com/search?q=
set query=%*
set query=%query: =+%
start %chrome% --new-window --start-fullscreen %url%%query%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment