Annoyances.org
Home » Windows XP Discussion Forum » Message 1019950802 Search | Help | Home
  
Tip: Run a free scan for common Windows errors ad

re: Question about 'Run a Shortcut from the Command Prompt'
Saturday, April 27, 2002 at 4:40 pm
Windows XP Annoyances Discussion Forum
Posted by jasonm (1 messages posted)


On Windows 2000 and XP (and possibly NT; I've never tried it) you can add .LNK to the PATHEXT environment variable. This will allow you to type the name of a .lnk in command prompt and windows will execute it. Dont forget to quote filenames with spaces in though. NOTE: You can also do this with any file type; Windows will load up the program that handles it (e.g. .DOC => MS Word).

You can change the environment variable in system properties (either for the system or yourself) or by typing "SET PATHEXT=%PATHEXT%;.LNK" into the command prompt window (saved only for the life of that window).


On Saturday, October 27, 2001 at 12:32 am, ron wrote:
>I have a question about Run
>a Shortcut from the Command Prompt
:


>i have a patch that is running with dos...but thing is it wont run in the command
>prompt of win xp...i have to change some commands...can somebody help me on this?
>


Written in response to:
Question about 'Run a Shortcut from the Command Prompt' (ron: Saturday, October 27, 2001 at 12:32 am)

There are presently no replies to this message.

All messages in this thread [show all]
-Question about 'Run a Shortcut from the Command Prompt' (ron: Sat, Oct 27, 2001, 12:32 am)
*re: Question about 'Run a Shortcut from the Command Prompt' (jasonm: Sat, Apr 27, 2002, 4:40 pm)
Return to the Windows XP Discussion Forum


All content at Annoyances.org is Copyright ©1995-2012 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.