Store commonly used program paths in the registry

Despite Windows 2000's graphical shell, there are many administrators who are more comfortable with a command line. They just like to bang a few keys to get their favorite programs to come up rather than navigate through a nest of menus and submenus.

However, most programs don't automatically add their executable path to the PATH: environment variable -- and the PATH: variable tops out at 1,023 characters in length. This length can be modified by a registry edit, but command-line sessions still truncate the variable to 1,023 characters. (This is not the total space devoted to environment variables, just the maximum size of any given variable.)

Fortunately there is a more sophisticated way to handle how Windows looks for executables. Open the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths and create a new key (i.e. subfolder). The name of the new key can be anything you wish and is simply used to describe the app being pointed to in it. Within this new key will be a pre-created REG_SZ value with the name (Default). Edit its value to be the full path and filename to the executable you want to add. This change takes effect immediately.

Many programs, when installed, take advantage of this technique to add their executables and their directories to this list, so you may see examples from other installed apps in App Paths.

Serdar Yegulalp is the editor of the

Requires Free Membership to View

Windows 2000 Power Users Newsletter.

This was first published in January 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.