Home > Enterprise >  How do I open browser in specific "profile" using BATCH script in Windows?
How do I open browser in specific "profile" using BATCH script in Windows?

Time:02-14

Here is the shell script I have used to open the specific URL

   start microsoft-edge: https://stackoverflow.com/questions/ask

However, I have multiple Profiles defined in Edge browser.

How do I open a browser based on the Profile name ? How do I pass Profile name or path in script?

CodePudding user response:

I'm on linux so I can't test it but you can test with one of those arguments :

--user-data-dir="C:\ChromeBrowser_profiles\Profile_edge"

or

--profile-directory="Profile 4"

CodePudding user response:

You can use --profile-directory="Profile name" to open Edge with specific profile.

The sample code for batch file is like this:

start "" "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" https://stackoverflow.com/questions/ask --profile-directory="Profile 1"

Note: please edit the Edge path and profile name to your owns.

  • Related