Skip to content

Instantly share code, notes, and snippets.

@craigphicks-public
Last active October 23, 2021 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigphicks-public/ec07c3e6ff0d6033fc9781d610116ae1 to your computer and use it in GitHub Desktop.
Save craigphicks-public/ec07c3e6ff0d6033fc9781d610116ae1 to your computer and use it in GitHub Desktop.
C:\Program Files\Google\Chrome\Application\chrome.exe
PowerShell:
(gp Registry::HKCR\ChromeHTML\shell\open\command)."(Default)" -match '"(.*?)"' | Out-Null
$exe=$matches[1]
Batch file:
set exe=
FOR /F "tokens=2* skip=2" %%a in ('reg query HKCR\ChromeHTML\shell\open\command /ve') do set exe=%%b
set exe=%exe:"=%
set exe=%exe:~0,-6%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment