Home > Windows Server Tips > > Store commonly used program paths in the registry
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Store commonly used program paths in the registry


Serdar Yegulalp
01.15.2003
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


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_MACHINESoftwareMicrosoftWindowsCurrentVersionApp 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 Windows 2000 Power Users Newsletter.


Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

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.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts