How to open a URL in batch file that require Username and Password?

20,637

I'm guessing, we're talking about HTTP Basic authentication? If so, you can use something like

START http://username:[email protected]

Just tested, this does not work on newer versions of Internet Explorer. It works on Firefox and most likely on other browsers. Internet Explorer can save the password though, you'll have to use the dialogue on the page once.

Share:
20,637
user1617237
Author by

user1617237

Updated on October 03, 2020

Comments

  • user1617237
    user1617237 over 3 years

    In the Command Prompt,

    I can open a url by START Http://www.foobar.com

    What if the website require to type in a Username and Password?

    as shown in Username Password

    btw the Username is a domain account like foo\bar