50

寻找一些帮助编写批处理文件以用作我朋友的笑话。本质上我希望它在 chrome 中打开某个 URL。然后我打算把它伪装成 svchost.exe 之类的东西,让它在启动时在计时器上运行。多谢!

4

4 回答 4

85

这很简单。试试看嘛:

start chrome https://www.google.co.in/

它将在 Chrome 浏览器中打开 Google 页面。

如果您想在 Firefox 中打开该页面,请尝试:

start firefox https://www.google.co.in/

玩得开心!

于 2014-07-06T09:55:54.133 回答
12

假设 chrome 是他的默认浏览器: start http://url.site.you.com/path/to/joke 应该在他的浏览器中打开该 url。

于 2013-10-14T02:04:45.390 回答
7
start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 2"

start "webpage name" "http://someurl.com/"

start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 3"

start "webpage name" "http://someurl.com/"
于 2015-05-02T14:15:43.967 回答
1
@ECHO OFF
"c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app="https://tweetdeck.twitter.com/"

@ECHO OFF
"c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app="https://web.whatsapp.com/"
于 2019-05-16T05:46:03.220 回答