How do I set Chrome as the default browser with a .BAT file?

3

Note: I've already read Batch - Default Browser?, but that's about getting the default browser. I want to set it.

I'm making a set of batch files to easily set up computers I use (don't worry; they're deep-frozen. I can't do any permanent damage). How can I write one to make Chrome the default browser?

Supuhstar

Posted 2014-03-15T21:48:07.910

Reputation: 446

Answers

7

You can do this by running the chrome with flags.

  • --make-default-browser: Makes Chrome default browser.
  • --no-default-browser-check: Disables the default browser check.

See the complete command line list of Chrome.

stderr

Posted 2014-03-15T21:48:07.910

Reputation: 9 300

2for completeness sake: Go to the directory where chrome.exe is located, type cmd in the address bar (opens cmd straight in that directory), type chrome.exe --make-default-browser – Andrejs – 2017-01-27T08:26:19.467