Windows XP increases the search path for executable files

  
        

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, it can be added more secretly. The application path, rather than the way to set up automatic batching, requires modifying the registry to accomplish this. For example, to add a path to the "C:\\Program Files\\Winrar\\Winrar.exe" file.

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". After the completion, directly enter "Winrar. exe" or "Winrar" in the "Run" command to start the program.

In Windows NT/2000/XP, you can also use variables 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