Wednesday, November 01, 2006 1:41 AM
I start most of my application using start - run. This a very convenient shortcut for running applications.
Sometimes your favorite application does not start via "start - run" or you might want to modify an existing shortcut.
Technically when you use the run dialog windows is executing the ShellExecute command.
When the method is executing there are several places that it can look in an attempt to find the file it should execute.
Those places are:
The Windows directory (no subdirectories are searched) The Windows\System32 directory Directories listed in the PATH environment variable The App Paths registry key Applications are encouraged to use the App Paths key to provide an application-specific path rather than adding to the global system path.
If you start regedit look at the following hive key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\app.exe
You can adjust everthing to your needs here.