How to start dialup network (DUN)?

R

Roy

I would like to start a DUN from a command line without directly using
rasdial.exe (with rasdial, I can dial into my ISP but the password is
not protected).

Sort of an odd problem. While one can click on a "shortcut" to start a
DUN, I have not found a way to accomplish the same functionality from a
command line (with a reasonable amount of searching), .

TIA for any assistance!

Roy
 
A

Ayush

Replied to [Roy]s message :
-----------------------------------------------------------
I would like to start a DUN from a command line without directly using
rasdial.exe (with rasdial, I can dial into my ISP but the password is
not protected).

Sort of an odd problem. While one can click on a "shortcut" to start a
DUN, I have not found a way to accomplish the same functionality from a
command line (with a reasonable amount of searching), .

TIA for any assistance!

Roy

What about running the shortcut from command prompt ?
Example :
%userprofile%\Desktop\My connection.lnk
 
R

Ramesh, MS-MVP

The user need to click the Dial/Connect button anyway. The OP is looking for
a command-line operation entirely.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Ayush" <ayushmaan.j[aatt]gmail.com> wrote in message
Replied to [Roy]s message :
-----------------------------------------------------------
I would like to start a DUN from a command line without directly using
rasdial.exe (with rasdial, I can dial into my ISP but the password is
not protected).

Sort of an odd problem. While one can click on a "shortcut" to start a
DUN, I have not found a way to accomplish the same functionality from a
command line (with a reasonable amount of searching), .

TIA for any assistance!

Roy

What about running the shortcut from command prompt ?
Example :
%userprofile%\Desktop\My connection.lnk
 
A

Ayush

Replied to [Ramesh, MS-MVP]s message :
-----------------------------------------------------------
What about running the shortcut from command prompt ?
Example :
%userprofile%\Desktop\My connection.lnk -----------
The user need to click the Dial/Connect button anyway. The OP is looking for
a command-line operation entirely.


But you can set in connection properties that connect directly without asking the
user name and password ...
 
R

Ramesh, MS-MVP

Yes. That works. Must have missed that option somehow.

To the OP:

Right-click the dial-up connection in the Network and Dial-up Connections
window, and then click properties. Click the Options tab. Click to deselect
the Prompt for name and password, certificate, etc. check box. Click OK.

Create shortcut to that connectoid, and try launching the connectoid
shortcut via command-line. It dials automatically (assuming that the
username and password are already stored.)

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Ayush" <ayushmaan.j[aatt]gmail.com> wrote in message
Replied to [Ramesh, MS-MVP]s message :
-----------------------------------------------------------
What about running the shortcut from command prompt ?
Example :
%userprofile%\Desktop\My connection.lnk -----------
The user need to click the Dial/Connect button anyway. The OP is looking
for
a command-line operation entirely.


But you can set in connection properties that connect directly without
asking the
user name and password ...
 
R

Roy

Hi Guys - Thanks for the help! My orginal problem is solved.

But, I am a little rusty using batch (.bat) files. When I use just the
command "Start shortcut" in a batch file (where shortcut is the link to
my dial-up connection now modified as suggested by Ramesh), the window
quickly opens and closes without starting my dial-up connectoid.
However if I follow the start command with a pause command, the dial-up
connection/process proceeds just fine. Of course closing the command
window requires pressing any key and this is the step I would like to
eliminate.

I also tried the sleep and timeout commands (again following the start
command) but neither worked. Any suggestions?

Again, thanks for the help!

Roy

I ha
Ramesh said:
Yes. That works. Must have missed that option somehow.

To the OP:

Right-click the dial-up connection in the Network and Dial-up Connections
window, and then click properties. Click the Options tab. Click to deselect
the Prompt for name and password, certificate, etc. check box. Click OK.

Create shortcut to that connectoid, and try launching the connectoid
shortcut via command-line. It dials automatically (assuming that the
username and password are already stored.)

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Ayush" <ayushmaan.j[aatt]gmail.com> wrote in message
Replied to [Ramesh, MS-MVP]s message :
-----------------------------------------------------------
What about running the shortcut from command prompt ?
Example :
%userprofile%\Desktop\My connection.lnk -----------
The user need to click the Dial/Connect button anyway. The OP is looking
for
a command-line operation entirely.


But you can set in connection properties that connect directly without
asking the
user name and password ...
 
A

Ayush

Replied to [Roy]s message :
-----------------------------------------------------------
Hi Guys - Thanks for the help! My orginal problem is solved.

But, I am a little rusty using batch (.bat) files. When I use just the
command "Start shortcut" in a batch file (where shortcut is the link to
my dial-up connection now modified as suggested by Ramesh), the window
quickly opens and closes without starting my dial-up connectoid.
However if I follow the start command with a pause command, the dial-up
connection/process proceeds just fine. Of course closing the command
window requires pressing any key and this is the step I would like to
eliminate.
 
R

Roy

Hi Ayush

Your "fix" worked great (with the number of pings set to 35).

But, I am curious. Do you have any idea why the batch commands
"timeout" or "sleep" don't accomplish the same result?

Thank you very much for the assistance!

Roy
Replied to [Roy]s message :
-----------------------------------------------------------
Hi Guys - Thanks for the help! My orginal problem is solved.

But, I am a little rusty using batch (.bat) files. When I use just the
command "Start shortcut" in a batch file (where shortcut is the link to
my dial-up connection now modified as suggested by Ramesh), the window
quickly opens and closes without starting my dial-up connectoid.
However if I follow the start command with a pause command, the dial-up
connection/process proceeds just fine. Of course closing the command
window requires pressing any key and this is the step I would like to
eliminate.
 
A

Ayush

Replied to [Roy]s message :
-----------------------------------------------------------
Hi Ayush
Your "fix" worked great (with the number of pings set to 35).


Glad to know that.


But, I am curious. Do you have any idea why the batch commands
"timeout" or "sleep" don't accomplish the same result?
Thank you very much for the assistance!

Sorry but i cant tell you why they didnt work because i dont have those commands.
They are not avaiable in XP by default.
 
R

Roy

Hi Ayush

FYI

As you pointed out, the timeout and sleep batch commands are not
included in WinXP (something I didn't know - and the obvious reason
they did not work <g>). However I found the Sleep.exe file in a
Microsoft 2003 server tool kit and it works just fine in a WinXP batch
file. The link for the tool kit is:

http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

Thanks again for the help!

Roy
Replied to [Roy]s message :
-----------------------------------------------------------
Hi Ayush
Your "fix" worked great (with the number of pings set to 35).


Glad to know that.


But, I am curious. Do you have any idea why the batch commands
"timeout" or "sleep" don't accomplish the same result?
Thank you very much for the assistance!

Sorry but i cant tell you why they didnt work because i dont have those commands.
They are not avaiable in XP by default.
 
A

Ayush

Replied to [Roy]s message :
-----------------------------------------------------------
Hi Ayush
FYI
As you pointed out, the timeout and sleep batch commands are not
included in WinXP (something I didn't know - and the obvious reason
they did not work <g>). However I found the Sleep.exe file in a
Microsoft 2003 server tool kit and it works just fine in a WinXP batch
file. The link for the tool kit is:
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

Thanks for the link. I will download the resource kit tomorrow ...
 

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