hi boys and girls of course,
im trying to wirte a bat. file that returnes a value out of the registry.
set KEY=reg query "HKEY_LOCAL_MACHINE\SOFTWARE\THQ\Dawn of War" /v CDKEY
echo %KEY%
well, my issue is rather simple. the set command dosnt see the reg query as a command, but as a string.
Does anybody maybe have an idea how to make the output of "reg query "HKEY_LOCAL_MACHINE\SOFTWARE\THQ\Dawn of War" /v CDKEY"
a variable. The problem ist the command gives me this output
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\SOFTWARE\THQ\Dawn of War
CDKEY REG_SZ ****-****-****-****
, but i only need the key itself. thx 4 the patience.