简体   繁体   English

通过批处理文件打开多个Canary Chrome浏览器窗口

[英]open multiple canary chrome browser windows via batch file

I am trying to open multiple windows via batch file in Chrome Canary. 我正在尝试通过Chrome Canary中的批处理文件打开多个窗口。 I can do it via regular Chrome, but when I try inserting info for Canary and launch it opens up a data file so I think the issue is maybe a directory issue. 我可以通过常规的Chrome浏览器来完成此操作,但是当我尝试为Canary插入信息并启动它时,它会打开一个数据文件,因此我认为问题可能是目录问题。

Regular Chrome (works) 普通Chrome(适用)

start "" "c:\program files (x86)\google\chrome\application\chrome.exe" --app="data:text/html,<html><body><script>window.moveTo(300,50);window.resizeTo(250,200);window.location='URL-HERE';</script></body></html>

Chrome Canary (that I cant get working) Chrome Canary(我无法工作)

start "" "C:\Users\Owner\AppData\Local\Google\Chrome SxS\Application\chrome.exe" —app="data:text/html,<html><body><script>window.moveTo(50,250);window.resizeTo(250,200);window.location='URL_HERE';</script></body></html>

try the following : 尝试以下方法:

start "" "C:\Users\YOURUSERNAME\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --app="data:text/html,<html><body><script>window.moveTo(50,250);window.resizeTo(250,200);window.location='http://www.google.com';</script></body></html>" 

It worked on my side. 它对我有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM