batch starts the URL n site asks for Username n Password

By lalawasi ·
Hi there,

I am not a guru in writting batch files, however I face a situation here, that i want to share with u to get the solution...

In this file batch file...


ECHO This is a batch file
ECHO Staring URL ...


ping -n 20 > nul:

ping -n 20 > nul:


basically these are the URLs that i get after i click a link in an already opened Window (The main window of a software that requires username and password at startup).

so when i run this script it throws me to the same window that requires username n password at the start of the Main Window.

I want it to behave same as manual procedure. means i don't want to click on the main window to open these links and don't want to be prompted for username and password.

Quick response will be highly appreciate..

THX n Regd

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

To put the user/pw into the url from a batch file or script, assuming that it is the standard user/pw pop-up like what a .htaccess file prompts you, (and not something integrated like a shopping cart or paypal or whatever) your command is:


Collapse -
by TM_ODY In reply to Easy enough. http://user: ...

When I use this method it complains about syntax. I checked to make sure I wasnt making goofball typing errors and I did it exactly as you suggested. But to no avail.
Do you have any suggestions as to why it might not let me use this method. Any IE settings or options that might make it difficult? Any ideas would be appreciated.

Related Discussions

Related Forums