re: Question about 'Run a Shortcut from the Command Prompt'
Sunday, August 7, 2005 at 9:21 am Windows XP Annoyances Discussion Forum
Posted by narc
(1 messages posted)
I hate the new behaviour or the Windows XP Start command. The behaviour changes
if you are running it from the command line OR if you are running it from a batch
file. I like to run batch files and on WinXP they were not working. I was just
getting a new command prompt with the application not launching.
Now I got it all figured out. Keep in mind this is for batch file processing. I
don't know how it works on the command line yet...
If the file you want to run has spaces in it, then you MUST include the title parameter
in quotes and the application path in quotes, such as this:
start "stupid_title" "C:\Program Files\TightVNC\vncviewer.exe"
If you are running a short file name, then you can leave out the title, just be sure
to leave out the quotes around the SFN:
start c:\windows\notepad.exe
This should work for .lnk files as well. Hope this helps.
- narc
On Friday, March 18, 2005 at 10:40 pm, Curt wrote:
>here's a solution:
>go to system in control panel (or hit Windows-key+Break).
>in the advanced tab, choose environment variables.
>change the system variable named 'PATHEXT'
>so that it includes .LNK
>it should look something like
>.COM;.EXE;.BAT;.VBS;.JS; .etc.; .LNK
>then you run a shortcut by typing the name with or
>without .lnk at the end. like:
>$> c:\links\firefox
>where firefox.lnk is the name of the shortcut.
>
>
|
All messages in this thread [show all]
 |  |  |  |  |  | re: Question about 'Run a Shortcut from the Command Prompt' (narc: Sun, Aug 7, 2005, 9:21 am) |
| |
| |
| |
Return to the Windows XP Discussion Forum
|
|