@echo off
for /f "tokens=2 delims==" %%i in ('findstr /i "installlocation" test.reg') do echo %%~i
pause>nul
作者: slore 时间: 2007-3-5 08:30 @echo off &setlocal enabledelayedexpansion
for /f "tokens=2 delims==" %%i in ('findstr /i "installlocation" test.reg') do (
set InPath=%%~i
set InPath=!Inpath:\\=\!
echo !Inpath!
)
pause >Nul