@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