user1617237
user1617237

Reputation: 143

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

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

Upvotes: 3

Views: 21778

Answers (1)

hakai
hakai

Reputation: 339

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.

Upvotes: 3

Related Questions