Skip to content

Instantly share code, notes, and snippets.

@C0nw0nk
Created November 27, 2022 11:05
Show Gist options
  • Save C0nw0nk/2b4c2a001db99f0bf07b11794c9403d1 to your computer and use it in GitHub Desktop.
Save C0nw0nk/2b4c2a001db99f0bf07b11794c9403d1 to your computer and use it in GitHub Desktop.
get vivaldi chromedriver current supported version
@echo off & setLocal EnableDelayedExpansion
::get vivaldi chromedriver version to extract the right file that will be compatible
set alias=REG QUERY ^"HKEY_CURRENT_USER\SOFTWARE\Vivaldi\BLBeacon^"
for /f "tokens=*" %%a in ('%alias% /s ^| FIND ^"version^" 2^>Nul') do (
set framework_version=%%a
::set "framework_version=!framework_version:~1,-1!"
set "framework_version=!framework_version:.=!"
set "framework_version=!framework_version: =!"
set "framework_version=!framework_version:Version=!"
set "framework_version=!framework_version:Target=!"
set "framework_version=!framework_version:REG_SZ=!"
)
::end vivaldi check
echo !framework_version!
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment