Launch your favorite apps with useful aliases from the Run dialog

Ever since Windows 95, Windows has had a cool feature known as app paths. It allows end users to create their own commands to run anything. Throughout its long history, this little known feature never gained much popularity, probably because it was initially designed for developers to prevent them from adding their apps to the system path variable. Even in Windows 8.1, this feature still exists without any changes, and is still secretly hidden from the eyes of the average Windows user. In this article, we will look at what app paths are and how you can create your own aliases to tremendously boost your working efficiency.

You can see app paths in action right after you first logon to Windows. Just press the Win + R keys together on your keyboard, type mplayer2.exe into the Run dialog or Start Menu search box and press Enter. Or type mplayer2 into the Start Menu/Start screen's search box and press Enter. You will see that Windows Media Player opens.

Press Win+R to show the Run dialog

Press Win+R to show the Run dialog

But wait, isn't the executable file of Windows Media Player named wmplayer.exe? Moreover, wmplayer.exe is not located in C:\Windows\ or C:\Windows\System32, from any location in the system path variable from where it can easily be located by the OS. It's located in C:\Program Files (x86)\Windows Media Player\wmplayer.exe and yet running mplayer2 started it!

You might wonder how Windows is able to locate and run Media Player using the mplayer2.exe command.

It is possible due to app paths. The Windows Shell uses them to find and run the appropriate executable file associated with the current alias.

Technically every alias is just a subkey of the App Paths registry branch at:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths
App paths

App paths

Every subkey of the App Paths key is an alias which looks like someapp.exe. The full path to the target executable file is specified in the default value of this subkey. The value to the target EXE can also have arguments or switches.

Let's look at our example of mplayer2.exe. From the screenshot below you can see that it points to the C:\Program Files (x86)\Windows Media Player\wmplayer.exe, so it will be launched every time the user or some app requests the mplayer2 application.

App paths - mplayer2

App paths - mplayer2

Also, there is another alias, wmplayer.exe which points to the same file but it allows you to avoid using the full path. So you can see multiple different aliases, mplayer2.exe and wmplayer.exe, can both launch C:\Program Files (x86)\Windows Media Player\wmplayer.exe.

Aliases which are stored in the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths key are system-wide aliases, which all user accounts on that PC can use. Additionally, starting with Windows 7, it is possible to have per-user aliases, which can be specified in the following key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths

Per-user aliases are only accessible to the specific user who has them defined in his registry.

By default, Windows has several system-wide aliases and no per-user aliases.

You can use this app paths feature and create custom aliases to launch apps faster. By creating shorter aliases, you can use your Run dialog or the Start Menu's search box as your application launcher.

For example, you can create an alias named ie.exe for the following file:

C:\Program Files (x86)\Internet Explorer\iexplore.exe

Using this alias, you will be able to launch Internet Explorer quickly by typing ie into the Run dialog or the Start Menu search box.

Unfortunately, Windows does not provide any GUI to manage app paths. To create an alias, you must use the Registry Editor to create a subkey under 'App Paths' key and set the full path to the target executable file manually. It is not convenient to use the Registry Editor every time you want to manage app paths.

I decided to create a tool with a simple user interface to control per-user and system-wide aliases. My portable, Win+R Alias Manager allows you to create aliases for any application and use your Start Menu or the Run dialog as the application launcher.

Win+R Alias Manager

Win+R Alias Manager

Using Win+R Alias Manager, you can create aliases for every app you have on your PC, whether it's an installed app or a portable app.

Win+R Alias Manager allows you to create, edit and delete aliases for both user and system applications (i.e. Firefox, Internet Explorer, Skype, Notepad etc).

The application allows you to create a per-user alias by default, but you can change this with a simple checkbox:

Win+R Alias Manager options

Win+R Alias Manager options

The alias and file path fields are required, the checkboxes are optional.

The 'System-wide alias (otherwise per-user)' checkbox will allow you to control which aliases are accessible to all users on the system. The last option will add the path containing the application executable file to its local %PATH% environment variable. Most applications do not require this option to be enabled, use it only if you are sure that it needs to be enabled for that particular software.

If you use Windows 7 or Windows 8, I recommend you to use per-user aliases. Windows XP and Windows Vista do not support per-user aliases so you are limited to using only system-wide aliases.

You can get Win+R Alias Manager from it's home page: download the Win+R Alias Manager application.

4 thoughts on “Launch your favorite apps with useful aliases from the Run dialog

  1. zydrius32

    A small mistake in the sentence in the last screenshot after 2nd checkbox. It should be: ‘You should set this option if you know that…’

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
  2. Surfin

    Nice tool ! Thanks…
    I have a question about the Run dialog :

    How to run a powershell script (locate in C:\Windows for example) from the run dialog without the need to type its extension (.ps1) ?
    With a batch file, no need to type the extension (.bat or .cmd) !!!

    Thanks by advance :-)

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. Sergey Tkachenko Post author

      create a new alias with the following command

      %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe path\to\your\script.ps1

      use that alias to run it from the Run dialog.

      Like or Dislike: Thumb up 1 Thumb down 0

      Reply
  3. Surfin

    Thank you, Nice workaround !

    Regards…

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *