There is a string propath under HKCU\Demo, and the value is: e:\People's Republic of China. How to read the value of propath when using reg export to export and then find?
My bat:
@echo off
reg export "HKCU\Demo" demo.reg
for /f "tokens=2 delims==" %%a in ('type demo.reg ^| find "propath" /v') do set path=%%~fa
ECHO %path%
del demo.reg
PAUSE >nul
Why is the read value something else?
[ Last edited by ivanisme on 2007-3-20 at 09:03 AM ]
My bat:
@echo off
reg export "HKCU\Demo" demo.reg
for /f "tokens=2 delims==" %%a in ('type demo.reg ^| find "propath" /v') do set path=%%~fa
ECHO %path%
del demo.reg
PAUSE >nul
Why is the read value something else?
[ Last edited by ivanisme on 2007-3-20 at 09:03 AM ]
