SoFunction
Updated on 2025-04-14

How to increase the search path of executable files in your computer


If the program you need to run is not in the directory specified by the system, the DOS operating system generally uses the method of setting the path in the automatic batch file to achieve the purpose of automatically finding the program; while in Windows, the application path can be added more secretly instead of setting up the automatic batch processing method, which requires the above purpose to be achieved by modifying the registry. For example, add a path to the "C:\Program Files\Winrar\Winrar.exe" file.

Run the Registry Editor and open this key value: [HKEY_LOCAL_MACHINE\ Software\Microsoft\Windows\Current Version\App Paths] (If this key value item does not exist, please create a new key value item Winrar. exe, modify the default key value item (string value) to: "C:\Program Files\Winrar\Winrar. exe", create a new string value PATH, and the value is "C:\Program Files\WINRAR". After completion, enter "Winrar.exe" or "Winrar" directly in the "Run" command to start the program.

In Windows NT/2000/XP system, variables can also be used instead of specific directories, such as "%ProgramFiles%\Winzip\" instead of "C:\Program Files\WINZIP\

”, this can achieve the purpose of enhancing adaptability. In addition, new values ​​and execution file paths can be set for existing programs. It should be noted that if the file path contains long file names (i.e., 8 English or 4 Chinese directories and file names in Dayu), the entire path should be enclosed in double quotes, otherwise in early Windows versions, files will not be located (in the latest Windows XP/2003 version system, this limitation can not be considered).