Ask the Expert

"Cheat" to create a shortcut to the DUN connection

This is actually not a question, but a follow-up on an earlier question someone posted: "How can I open a Dial Up Network Connection in the command line prompt?" This question posed on 30 April 2001

John Robbins suggested writing a short program to do it. I would like to point out that there are actually two obscure ways to do this.

1. You can directly call the phonebook entry for the DUN connection, using the following command line-
%Systemroot%System32Rasphone -d >phonebook entry name>

2. The easier way, a "cheat" since you have to do one thing to prep it once, is to create a shortcut to the DUN connection. Rename it something short with no spaces in the name or path. I call it my shortcut to my regular dialup link "ISP." You can just type "start isp" (or have it in a batch file). If you have Windows set to automatically connect with the password cached, it will do the connection for you with no problem.

Both are pretty obscure but workable.

    Requires Free Membership to View

Thanks a million, Alex! I didn't realize RASPHONE.EXE existed. Your solutions are both very clean and answer the question much better. Thanks for taking the time to help us all out.

This was first published in June 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: