Last active
October 23, 2021 06:33
-
-
Save craigphicks-public/ec07c3e6ff0d6033fc9781d610116ae1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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