re: Question about 'Run a Shortcut from the Command Prompt'
Thursday, April 17, 2008 at 7:41 am Windows XP Annoyances Discussion Forum
Posted by brunces
(1 messages posted)
Guys, I know this is a very old thread, but I'd like to give my contribution. :)
A friend above has taught us to use it like that...
cmd /k "appname arguments & exit"
... and that's correct, I mean, that's how it works. But there's only one detail.
Windows XP won't recognize folder or program names with spaces, so we have to type
those names in DOS old style (8.3). For example:
cmd /k "C:\MyShortcuts\Window~1.lnk & exit"
... instead of...
cmd /k "C:\MyShortcuts\Windows Live Messenger.lnk & exit"
To figure out the names in 8.3 format, run DOS prompt and enter the folder where
your shortcuts are. Then, type DIR /X. With this command, you'll be able to see the
names of the shortcuts in DOS old style. That's what you gotta use in your batch
files.
Hope this can help you. :)
Cheers,
Bruno
|
All messages in this thread [show all]
 |  |  |  |  |  |  |  |  |  | re: Question about 'Run a Shortcut from the Command Prompt' (brunces: Thu, Apr 17, 2008, 7:41 am) |
| |
| |
| |
Return to the Windows XP Discussion Forum
|
|