I am querying from registry:
for /f "tokens=3" %%i in ('reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl" /v "DumpFile"') do set dump=%%i
When I do echo %dump% I get: %SystemRoot%\MEMORY.DMP
But what I want is: C:\Windows\MEMORY.DMP
Because %SystemRoot% is built-in var which locates the SystemRoot (in this case C:\Windows)
Thanks for your help