dial-up from command line in Win2k

B

bonschy

Hi,
I'm trying to launch a Dial-up connection from a batch
file. I found the win95 way of doing it but not for Win2k
Pro.
i'm looking for the win2k version of:
rundll rnaui.dll,RnaDial My Connection
please help
thanks
 
W

Wadester

Thinking they were helping said:
Hi,
I'm trying to launch a Dial-up connection from a batch
file. I found the win95 way of doing it but not for Win2k
Pro.
i'm looking for the win2k version of:
rundll rnaui.dll,RnaDial My Connection
please help
thanks

I know rasdial.exe could be used in NT for this. It appears to be available
under W2K Server as well.

ws
 
V

vagabond

Snippet from an old ng post of mine:

[first create dun then drag shortcut to it to another folder in which you should create the following batch file.]

#####

START RASDIAL.EXE <connection_name> <user_name> <password>

eg START RASDIAL.EXE UK2 UK2 UK2

(Obviously, change parameters as appropriate.)

That's it.

Note: I tried various other methods which didn't work, for instance typing "RASDIAL.EXE UK2 UK2 UK2 at the command prompt gives an error (I guess that having the .lnk in the same dir as the batch file helps). Also, you must (or certainly I had to) specify the username and password, otherwise (with nimble fingers and Alt-Print Screen) you will see that you get a 691 authentication error.

Also had a quick look at RASPHONE.EXE

See netcfg.chm for fuller details.

If you are using Win98 something like:

START RUNDLL32 RNAUI.DLL,RnaDial <exact name of dialer entry>
TRACERT -h 1 -w 1

is supposed to work (see google).

#####
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top