Skip to content

Instantly share code, notes, and snippets.

@CometAttack
CometAttack / RegHexToDec.bat
Created March 5, 2016 05:06
Batch script to pull specific hex values from registry key and convert to decimal
@echo off
SetLocal EnableDelayedExpansion
regedit /e "%temp%\_tempReg.txt" "HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Profiles\Lin5\04c57c648994de4e87a18d687348202f"
for /f "tokens=2 delims=:" %%A in ('type "%temp%\_tempReg.txt" ^| find /i "0102663b"') do (
set HexValue=%%A
)