@echo off
cd /D "C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\"
set ffile=%cd%
findstr /m ^"homepage^":^"http://www.google.com/^" "%ffile%\Secure Preferences"
if %errorlevel%==0 (
echo Ok
)else (
echo "Not Ok"
)
pause
findstr
当我搜索"homepage":"http://www.google.com/"
不返回任何东西,但它工作时,我只搜索“主页” - 为什么?FINDSTR没有找到“主页”:“http://www.google.com/”
那么你的主页没有设置为http://www.google.com – SomethingDark
在^”homepage ^“中:^”google.com ^“返回”首页“:”google.com“但不工作 – checkmate