Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!
    – Sam
    Commented Apr 5, 2017 at 23:47
  • 1
    Also, you can simplify the SendKeys bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} ".
    – Sam
    Commented Apr 14, 2017 at 3:29
  • 2
    I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).
    – Ellipsis
    Commented Jan 26, 2018 at 8:52
  • 4
    Doesn't work in Windows 10 1809
    – Deleted
    Commented Jun 11, 2019 at 4:54
  • 2
    This answer stopped working in Windows 10 1803. Instead, use this answer.
    – Sam
    Commented Apr 9, 2020 at 21:43