twig123 Posted September 30, 2008 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 ?
jjvs Posted October 28, 2008 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now