re: Question about 'Run a Shortcut from the Command Prompt'
Wednesday, December 8, 2004 at 2:42 pm Windows XP Annoyances Discussion Forum
Posted by jason
(1 messages posted)
Hello,
I'm writing a simple batch file to load 8 command windows, each executing its own,
different process. All of these processes are specified as link files, for example
"f18 lead converted.lnk"
I've tried using the following:
start "f18 lead converted.lnk"
this does not work.
I've had success with the following:
start call "f18 lead converted.lnk"
cmd /k "f18 lead igen_console.lnk"
Here's the problem. The programs have text based interaction so that I can query
them for debugging purposes as they run. This functionality does not work when loading
the files with the above commands (the program is unresponsive to my text input).
When I launch the programs by manually clicking on all eight links, the text based
interactions functions as they should.
The question:
Why is this? Are there other batch file commands I can use to launch the command
windows and my processes so that they are responsive?
This is frustrating :P
Thanks for any help!
-jason
On Sunday, November 28, 2004 at 2:34 am, Assad E.K. Ebrahim wrote:
>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' (jason: Wed, Dec 8, 2004, 2:42 pm) |
| |
| |
| |
Return to the Windows XP Discussion Forum
|
|