Q

"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.
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 last published in June 2001

Dig Deeper on Windows Operating System Management

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close