Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Registry value for specific key

I have seen many answers to this general question but not sure how to incorporate the solutions to my batch... Can you help? I need the decimal value for this command/key:

reg query HKLM\Software\Wow6432Node\TeamViewer\Version9 /v ClientID
like image 249
R0tten Avatar asked Mar 18 '26 15:03

R0tten


1 Answers

for /f "tokens=3" %%a in ('reg query HKLM\Software\Wow6432Node\TeamViewer\Version9 /v
 ClientID') do (set /a num = %%a)
echo/%num%

It will convert 0x..... to a decimal value. Don't forget to use %a instead of %%a if you are using cmd and not a batch file.

like image 133
Rafael Avatar answered Mar 23 '26 09:03

Rafael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!