我正在尝试向下载管理器chrome标志打开chrome实例。但它并不喜欢我。网址将完美无缺,所以我知道chrome标志不是网址,所以我们如何打开这部分chrome
chrome://downloads/
start /D "C:\Program Files (x86)\Google\Chrome\Application" chrome.exe --new-window "chrome://downloads/"
答案 0 :(得分:2)
不可能。
查看Chromium源代码中的StartupBrowserCreator::GetURLsFromCommandLine:
if (policy->IsWebSafeScheme(url.scheme()) ||
url.SchemeIs(url::kFileScheme) ||
#if defined(OS_CHROMEOS)
// In ChromeOS, allow any settings page to be specified on the command
// line. See ExistingUserController::OnLoginSuccess.
(url.spec().find(chrome::kChromeUISettingsURL) == 0) ||
#else
((url.spec().find(std::string(chrome::kChromeUISettingsURL) +
chrome::kResetProfileSettingsSubPage) == 0)) ||
#endif
(url.spec().compare(url::kAboutBlankURL) == 0)) {
urls.push_back(url);
}
chrome://settings
页面chrome://settings/resetProfileSettings
。http://
,https://
,ftp://
,data:
,feed
,blob:
,c:\something.html
和about:blank
。因此,在命令行中忽略所有chrome://
url,但上述异常。
答案 1 :(得分:-1)
以下是您可以使用的代码:
start https://www.google.com/
timeout /t 10
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{TAB}"
%SendKeys% "{c}{h}{r}{o}{m}{e}{:}{/}{/}{d}{o}{w}{n}{l}{o}{a}{d}{s}{/}"
%SendKeys% "{ENTER}"