批处理文件以在新的浏览器窗口中打开选项卡 [英] batch file to open tabs in a NEW browser window

查看:186
本文介绍了批处理文件以在新的浏览器窗口中打开选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要修改批处理文件.

I need to modify batch file.

我有一个批处理文件,当我从桌面单击图标时,该文件会打开许多​​选项卡.这些标签会在我的已打开"默认浏览器中打开.

I have a batch file that opens many tabs when I click icon from desktop. These tabs are opened in my ALREADY OPENED default browser.

我想为这些标签打开一个新窗口.

I would like to have a NEW WINDOW open for these tabs.

批处理文件如下:

@echo off
start "webpage name" "http://someurl.com/"
start "webpage name" "http://someurl.com/"
start "webpage name" "http://someurl.com/"
start "webpage name" "http://someurl.com/"

我需要进行哪些更改

推荐答案

我知道了.

打开一个新的浏览器窗口的批处理文件,然后打开预期的网站:

The batch file to open a NEW browser window, and then the intended websites:

@echo off
"C:\Users\THEUSER\AppData\Local\Google\Chrome\Application\chrome.exe"
sleep1
start "webpage name" "http://someurl.com/"
start "webpage name" "http://someurl.com/"
start "webpage name" "http://someurl.com/"
start "webpage name" "http://someurl.com/"

它正在为我工​​作.唯一的警告是,如果在新的浏览器窗口启动时有一组页面要打开,则这些页面也会被打开.

It is working for me. The only caveat, is that if we have a set of pages to open when the new browser window starts up, these will be open too.

解决方案?创建另一个批处理文件以打开那些预期的网站,然后使用桌面文件图标打开这些网站.然后将浏览器的默认配置更改为在启动时不打开特定的网站或主页.

Solution? Create another batch file to open those intended websites, and use the desktop file icon to open these. THEN change browser's default configuration to not open specific website or home page on start up.

更新在Alvaro评论浏览器不是默认浏览器之后:

UPDATE After Alvaro commented on the browser not being the default browser:

对我来说,默认浏览器是Chrome.然后,为设置默认浏览器打开,将行"C:\ Users \ THEUSER \ AppData \ Local \ Google \ Chrome \ Application \ chrome.exe"更改为反映您想要的浏览器的路径

For me the default browser is Chrome. Then, for you to set your default browser to open, the line "C:\Users\THEUSER\AppData\Local\Google\Chrome\Application\chrome.exe" should be changed to reflect the path of your intended browser

这篇关于批处理文件以在新的浏览器窗口中打开选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆