问题
I am trying to make a bat file to change the chrome's homepage.
cd %homepath%\Local Settings\Application Data\Google\Chrome\User Data\Default
But I don't know the next step.
回答1:
In Google chrome:
chrome settings are in %USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data.ChromotingConfig.json and are a little bit encrypted.
but you can do a workaround like by just pasting following javascript into the "Home Page" pref field (under your Chrome options) and it works as expected when clicking the "Home" button.
javascript:(function(){ window.location.href='http://www.google.com/';})();
来源:https://stackoverflow.com/questions/19623710/how-to-change-chrome-homepage-with-a-bat-file