A. It is possible to create an alias for a program, for example to
define johnword.exe to actually run winword.exe. To do this perform the
following:
- Start the registry editor (regedit.exe)
- Move to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths
- From the Edit menu select New - Key
- Enter the name of the alias, e.g. johnword.exe and press Enter
- Move to the new key and double click on the (Default) value (it is blank by
default)
- Set to the fully qualified file name it should run, e.g. C:\Program
Files\Microsoft Office\Office\winword.exe. Click OK
- Optionally you can create a new String called Path which is where the
program will first start running (Edit - New - String Value - Path, double
click and set to the starting path)
- Close the registry editor
If you now select Run from the start menu and type johnword.exe it would
start Microsoft Word, cool!
If you type your alias from the command prompt it will not find it, however
if you type
C:\> start <alias name>
it will work fine.
The actual program name does not have to be an .exe program -- it can be any
file that has an association (such as "C:\temp\ntfaq.url"). The alias
itself 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 any
extensions (but it must have some extension). Your alias can be John.Savill
which you have aliased to "C:\ProgramYadaYadaYada\Winword.exe" and
Word will start up just fine.