str 路徑
InstallLocation key
@echo off
set "str=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sogou Input"
for /f "tokens=2*" %%a in ('reg query "%str%" /v InstallLocation 2^>nul') do set "a=%%b"
echo,%a%
pause
str 路徑
InstallLocation key
@echo off
set "str=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sogou Input"
for /f "tokens=2*" %%a in ('reg query "%str%" /v InstallLocation 2^>nul') do set "a=%%b"
echo,%a%
pause