Processing batch file
<p>Having an issue where I get information from one token but not the other. I am doing a reg query and want to compare the value using GEQ this variable as per following registry DWORD Value:
ValueName: Version
Value Data (Hex):4020000</p>

<p>Here is the command which is still in testing: </p>

<pre><code>@echo on
setlocal enabledelayedexpansion
set n2=0x4020000

:Query
fOR /f "tokens=2*" %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\A2C5AA9AEF84B7B4BADF0EA6D2D6F1E8" /v version') DO SET n1=%%B
for /f "tokens=2* delims=x" %%a in ("%n2%") do set "v2=%%a"
for /f "tokens=2* delims=x" %%a in ("%n1%") do set "v1=%%a"
&gt;&gt;"C:\temp\version.txt" echo %v1,%v2% 
</code></pre>

<p>No matter what I cannot output %v1% which is the live value I need to compare against..what am I missing?</p>

<p>Thanks</p>

<p>Mikoyan</p>