re: Question about 'Run a Shortcut from the Command Prompt'
Saturday, May 26, 2007 at 6:41 pm Windows XP Annoyances Discussion Forum
Posted by Sonrisante
(1 messages posted)
Chris:
I see this is a very old post and this thread had gone off in many directions.
But none of the many responses came up with a simple answer I've found to work for
me.
Instead of putting quotes around the entire name, only quote those path-sections
that contain spaces. Any that do not contain spaces do not need to be quoted. This
is a bit cumbersome, but works (at least in .BAT files, which is when I tend to use
them. I don't know about typing into the command line directly; I try to stay away
from such manual activity :).)
For example, the following shortcut:
C:\
Documents and Settings
All Users
Start Menu
Programs
NUnit 2.4
NUnit GUI (.NET 2.0).lnk
would render the following start command:
start C:\"Documents and Settings"\Bob\"Start Menu"\Programs\"NUnit 2.4"\"NUnit
GUI (.NET 2.0)".lnk
(I'm sure you caught it, but the line above is so long that the message
wrapped it. In the batch file it should be a single line of text.)
Hope this helps.
Bob
|
All messages in this thread [show all]
 |  |  |  | re: Question about 'Run a Shortcut from the Command Prompt' (Sonrisante: Sat, May 26, 2007, 6:41 pm) |
| |
| |
| |
Return to the Windows XP Discussion Forum
|
|