批处理脚本/ CMD[打开两个不同的链接都在不同的谷歌chrome配置文件]



我想在不同的google chrome配置文件中使用相同的批处理脚本文件打开两个不同的链接。

。: 1号线https://www.youtube.com&2号剖面https://skribbl.io

所以我可以在第一个配置文件中观看YouTube,在第二个配置文件中玩游戏。

我有2个屏幕只需要批处理脚本启动两个链接。

是的,我经常玩涂鸦。在我的另一个屏幕上看YouTube视频!

对于任何一个有同样问题的人…

下面的代码可以工作!

请确保根据您的计算机更改Google安装位置。并将链接更改为您想要使用的任何内容。另外,不要忘记设置正确的Google Profile Profile名称…

START "" "C:Program Files (x86)GoogleChromeApplicationchrome.exe" https://www.anycustomlink.com --profile-directory="Profile_name"

下面的代码将打开YouTube与第三个谷歌Chrome配置文件!

START "" "C:Program Files (x86)GoogleChromeApplicationchrome.exe" https://www.youtube.com --profile-directory="Profile 3"

再次感谢@ArraffaFile

新答案:如果我理解,你想在不同的chrome配置文件中打开一个chrome上的批量文件链接,如果这是问题,我可以帮助你。在这里提出问题之前,我建议在搜索引擎(如Google)或YouTube上进行搜索。通过做一些研究,我发现了一个视频,可能会帮助你:https://www.youtube.com/watch?v=XLmTo_O3hjU(不是由我上传),无论如何,这是解决方案:您的代码正在尝试使用系统默认浏览器打开https://www.youtube.com。要打开该链接与chrome的不同配置文件,你需要改变代码:

START "" "C:Program FilesGoogleChromeApplicationChrome.exe" https://www.youtube.com --profile-directory="Profile 1"
所以你的代码将是:
@ECHO OFF
START "" "C:Program FilesGoogleChromeApplicationChrome.exe" https://www.youtube.com --profile-directory="Profile 1"
START "" "C:Program FilesGoogleChromeApplicationChrome.exe" https://www.youtube.com --profile-directory="Profile 2"
PAUSE > NUL
EXIT

如果它不工作,尝试改变chrome路径(我写了通常的默认路径),并告诉我它是否工作。希望我对你有所帮助,如果没有,请留下评论,我会尝试重新编辑答案。

最新更新