Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have become a fervent console user since I began using the linux shell in my daily workflow.

I want to be able to call "C:\Program Files\Application\Application.exe" as application from the command line where the application is any arbitrary application. I know that I can use the PATH environment variable for this; however, I would prefer not to pollute my environment variable space more than it should be (since I have over 10 applications that I would like to create shortcuts for).

Edit: Should have mentioned earlier that I would also like the shortcuts to be compatible with MinGW as well.

share|improve this question
up vote 4 down vote accepted

Aliases are available for the NT Command Prompt through the doskey command:

doskey word="%ProgramFiles%\Windows NT\Accessories\wordpad.exe" $*

You may now use the alias instead of the (full) name of the executable:

word %SystemDrive%\boot.ini
share|improve this answer
FYI, this works for any program that uses Win32 Console windows – not just cmd.exe. (My guess for MinGW is doskey/exename=bash.exe.) – grawity Mar 1 '11 at 13:32

Create a folder, e.g. C:\apps, and place links to your applications there.

Add that folder to your %PATH%.

Then, change %PATHEXT% so you don't have to type the .lnk extension every time:


(You can edit environment variables in System in Control Panel)

share|improve this answer
.lnk files don't work for MinGW. – Gio Borje Feb 28 '11 at 20:54

I suppose you could put shortcuts (or batch files that simply 'call') to those applications in %systemroot%

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .