How to increase the search path for executable files in your computer _ registry

Source: Internet
Author: User

If the program you want to run is not in the system-specified directory, the DOS operating system typically uses a path in the automatic batch file to automatically find the program, while in Windows you can increase the application path in a more secret way, rather than by setting up automatic batch processing. This needs to be done by modifying the registry. For example, to "C:\Program Files\winrar\winrar." EXE file to increase the path.

Run Registry Editor to open this key value: [hkey_local_machine\ software\microsoft\windows\current Version\app Paths] (new if no such key is present), New key value entry winrar. EXE, modify the default key value entry (string value) as: "C:\Program Files\winrar\winrar. EXE ", new string value path, value" C:\Program Files\winrar ". When you are finished, enter Winrar directly in the Run command. EXE "or" Winrar "to start the program.

In Windows NT/2000/XP systems, you can also use variables to replace specific directories, such as "%programfiles%\winzip\ Winzip32.exe" instead of "C:\Program files\winzip\

Winzip32.exe ", this can achieve the goal of enhancing adaptability. You can also set new values and execute file paths for programs that already exist. Note that if the file path contains a long file name (that is, Dayu 8 English or 4 Chinese directories, file names), the entire path should be enclosed in double quotes, otherwise in earlier versions of Windows you will not be able to locate the file (in the latest Windows xp/2003 version system, Do not consider this restriction).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.