How can I create a program alias?

John Savill

March 9, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. It is possible to create an alias for a program, for example todefine johnword.exe to actually run winword.exe. To do this perform thefollowing:

  1. Start the registry editor (regedit.exe)

  2. Move to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAppPaths

  3. From the Edit menu select New - Key

  4. Enter the name of the alias, e.g. johnword.exe and press Enter

  5. Move to the new key and double click on the (Default) value (it is blank bydefault)

  6. Set to the fully qualified file name it should run, e.g. C:ProgramFilesMicrosoft OfficeOfficewinword.exe. Click OK

  7. Optionally you can create a new String called Path which is where theprogram will first start running (Edit - New - String Value - Path, doubleclick and set to the starting path)

  8. Close the registry editor

If you now select Run from the start menu and type johnword.exe it wouldstart Microsoft Word, cool!

If you type your alias from the command prompt it will not find it, howeverif you type

C:> start

it will work fine.

The actual program name does not have to be an .exe program -- it can be anyfile that has an association (such as "C:temptfaq.url"). The aliasitself can remain as an .exe.

If the alias is an .exe, then the "run" or "start"command does not need to include the extension. If the alias is NOT an .exe,then you need to use the full name but then you are not limited to anyextensions (but it must have some extension). Your alias can be John.Savillwhich you have aliased to "C:ProgramYadaYadaYadaWinword.exe" andWord will start up just fine.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like