Reputation: 4488
I need to open 2 Edge windows from a batch file (not two tabs, 2 windows). I know I can launch edge using the following command:
start microsoft-edge:
But if I try it twice the second command does nothing. If I try it with URLs I get 2 tabs in the same window. e.g.
start microsoft-edge:http://google.com
start microsoft-edge:http://bing.com
Any ideas how to get 2 separate windows?
Upvotes: 7
Views: 31748
Reputation: 1
This should work...
start "" "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
start "" "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
start "" "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
so this will start microsoft edge 3 times
Upvotes: 0
Reputation: 1
Just put this in PowerShell
start msedge "--new-window https://bing.com","--new-window https://red.com","--new-window https://yahoo.com","--new-window https://google.com","--new-window https://msn.com","--new-window https://bing.com","--new-window https://red.com","--new-window https://yahoo.com","--new-window https://google.com","--new-window https://msn.com","--new-window https://bing.com","--new-window https://red.com","--new-window https://yahoo.com","--new-window https://google.com","--new-window https://msn.com"
You can add more or change the link addresses if you want.
Upvotes: 0
Reputation: 68
Just to expand on Cam's answer, the following works as of 2023 (and possibly worked back when this question was asked, as well):
start msedge --app=http://google.com
start msedge --app=http://bing.com
As far as I can tell, this is the simplest way of doing what the original poster is asking. You can omit --app=
from the first URL if there's no chance the host will already be running an msedge process. But basically, that prefix guarantees you'll get a new process/window, no proxies or modules required.
Alternatively:
start msedge "--new-window https://google.com"
start msedge "--new-window https://bing.com"
The commands were tested on Windows 10 using PowerShell version 5.1.19041.2364.
Upvotes: 1
Reputation: 2523
Use --new-window option:
start msedge http://google.com
start msedge --new-window http://bing.com
Upvotes: 4
Reputation: 116
You can use the executable msedge_proxy.exe which is installed alongside msedge.exe. For example in "C:\Program Files (x86)\Microsoft\Edge\Application".
Sample usage:
> msedge_proxy.exe --app=http://bing.com
If you execute that command multiple times, it pops a new window each time.
Upvotes: 0
Reputation: 1
You can open as many as you like, just create batch files that call other batch files. Very easy to do.
Ex: batch1.cmd: @echo off start microsoft-edge:http://google.com start "path\batch2.cmd"
exit
Make sure to add "start microsoft-edge:http://bing.com" on your "batch2.cmd" file
Manny
Upvotes: 0
Reputation: 268374
As you are aware, you can trigger Microsoft Edge indirectly from the command line (or a batch file) by using the microsoft-edge:
protocol handler. Unfortunately, this approach doesn't enable you to open up an arbitrary number of windows.
The Microsoft Edge team built a small utility to assist, and presently hosts it on GitHub.
> MicrosoftEdgeLauncher.exe http://bing.com
> MicrosoftEdgeLauncher.exe http://stackoverflow.com
I just tested this, and it opened two individual windows for me. There does appear to be an issue where the second window doesn't navigate to the URL; remaining open with the New Tab Page.
Upvotes: 1