September 30, 200817 yr What is the easiest way to read a registry value with the REG.exe command that is in hex and convert it to dec ?
October 28, 200817 yr 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, 200817 yr by jjvs
Create an account or sign in to comment