re: Question about 'Run a Shortcut from the Command Prompt'
Sunday, November 28, 2004 at 2:34 am Windows XP Annoyances Discussion Forum
Posted by Assad E.K. Ebrahim
(1 messages posted)
I've had similar difficulties on Windows XP.
It turns out the problem is not with running a shortcut from the command line. You
can verify this by running from the command line the Paint.lnk shortcut located in
your desktop folder.
The problem is with running the dialup connection shortcut from the command-line.
This does not seem possible by simply calling the link.
Instead, the DOS shell utility to use is rasdial. To find out how to use it, open
a cmd window and type: rasdial /?
You'll use it in this way: rasdial [Phone Book Entry] [username] [password]
VB6 Example:
Shell "rasdial ""Connect to Intergate"" myusername@intergate.com mypassword", vbNormalFocus
Here the doublequotes are because "Connect to Intergate" is the name of my connection
in the Remote Dialer phonebook, and the spaces in the name force me to use quotes.
Good luck.
|
All messages in this thread [show all]
 |  |  |  |  |  |  |  |  | re: Question about 'Run a Shortcut from the Command Prompt' (Assad E.K. Ebrahim: Sun, Nov 28, 2004, 2:34 am) |
| |
| |
| |
Return to the Windows XP Discussion Forum
|
|