Windows XP increases the search path of the executable file

  

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

Run the registry editor, open this key: [HKEY_LOCAL_MACHINE\\ Software\\Microsoft\\Windows\\Current Version\\App Paths] (If there is no such key value, please create a new one), 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, the value is "C:\\Program Files\\WINRAR". Upon completion, enter "ldrar. exe" or "Winrar" in the "Run" command to start the program.

In Windows NT/2000/XP, variables can also be used instead of specific directories. For example, you can use “%ProgramFiles%\\Winzip\\ Winzip32.exe” instead of “C:\\Program Files \\WINZIP\\

winzip32.exe”, this can achieve the purpose of enhancing adaptability. It is also possible to set new values ​​and execute file paths for existing programs. It should be noted that if the file path contains a long file name (that is, a large number of 8 English or 4 Chinese directories, file names), the entire path should be enclosed in double quotes, otherwise it will not be available in earlier versions of Windows. Locate files (in the latest Windows XP/2003 version, this limitation is not considered).

Copyright © Windows knowledge All Rights Reserved