Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have created a folder (d:\shortcuts), created shortcuts for most applications in this folder and appended the folder path to the Path environment variable. Now all my applications are available from run and command window without messing around with Path.

However, I now have to type the name of the shortcut as well as extension (e.g. vlc.lnk) to invoke it. Is there any way to do this without typing the extension?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

adjust the PATHEXT environment to include .lnk:

% set PATHEXT=%PATHEXT%;.lnk

by using the suffices given in PATHEXTcmd decides, what kind of files are launchables.

share|improve this answer
    
Perfect. Thanks Akira. –  Abbas Jan 1 '11 at 20:30

Why don't you use use doskey and this feature of the command prompt to automatically alias all your shortcuts?

share|improve this answer
    
Interesting suggestion, I'll try it if no other option is available. Thanks for the article though, I always wanted to know how to run a bat file when the command window opens. –  Abbas Jan 1 '11 at 6:38
1  
The link is dead, I'm afraid. –  Cameron Jan 8 at 21:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.