User profiles and command line arguments in MS Edge?

Viewed 9890

I am writing an application which is at one point expected to launch an Edge window. I'd like this new instance of Edge to be completely separate from other Edge windows in the system (so that it doesn't inherit cookies, favourites and other things). In other words, I am looking for a behavior similar to Chrome's --user-data-dir flag. Is this possible with Edge? I've looked around and it seems that the only command line parameter accepted by Edge is :url, and changing the user profile directory is rather cumbersome and involves fiddling with the registry, which is not an option...

2 Answers

With chromium based Microsoft edge you can use...

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge_proxy.exe"  --profile-directory=Default www.google.com

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge_proxy.exe"  --profile-directory="Profile 1" www.google.com

MS are planning to release a Chromium-based Edge in the future and have already begun the migration. Currently (as of 12 October, 2019) there is a beta (78.0.276.17) version available, where the following parameter is working fine:

msedge.exe --user-data-dir="C:\ChromeBrowser_profiles\Profile_edge"

Note that executables are available at:

  • C:\Program Files (x86)\Microsoft\Edge Beta\Application
  • C:\Program Files (x86)\Microsoft\Edge Beta\Application\78.0.276.17

When loading a profile from another Chromium browser the apps don't open but a file CrashpadMetrics-active.pma is created in the profile directory.

Related