twig123 Posted September 30, 2008 Share Posted September 30, 2008 What is the easiest way to read a registry value with the REG.exe command that is in hex and convert it to dec ? Link to comment Share on other sites More sharing options...
jjvs Posted October 28, 2008 Share Posted October 28, 2008 (edited) You could try this@ECHO OFFSETLOCAL ENABLEEXTENSIONSSET KEY=HKLM\Software\Microsoft\DrWatsonSET VALUE=InstructionsFOR /F "SKIP=3 TOKENS=3" %%F IN ('REG QUERY "%KEY%" /V "%VALUE%"') DO @( SET /A DEC=%%F + 0 SET HEX=%%F)ECHO %DEC% %HEX%On my computer the output is10 0xa Edited October 28, 2008 by jjvs Link to comment Share on other sites More sharing options...
enuffsaid Posted October 28, 2008 Share Posted October 28, 2008 Start > Run > calc > view > scientific. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now