Question

Locked

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 OFF

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

:BEGIN

Start http://www.xxxxxxxx.com/
ping -n 20 127.0.0.1 > nul:

Start http://www.xxxxxxxx.com/
ping -n 20 127.0.0.1 > nul:

GOTO BEGIN
PAUSE
EXIT


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
WUMM

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| 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:

start http://user:pass@www.xxxxxx.com/

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.

Back to Software Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums