Clearly understand XP system environment variable

  
Recently, a friend's computer has a strange phenomenon: running all commands in the command line mode of Windows XP system indicates that the command is not an internal or external command, nor can it run the executable file and or Batch file.

settlement papers:

I believe that the implementation of these commands executable files from accidental deletion caused, system32 directory into the system installation directory found in ipconfig and other executable files still exist, and there is no Signs of being deleted or altered.

first step: in the directory directly run the executable files found brings up a command window, but fleeting. From this it can be concluded that these executable files are okay and intact.

Step 1: Enter "CMD" command into the command line, then enter "c: Windowssystem32" directory, run the ipconfig command, found everything normal, IP address and DNS information Show all out.

Step four: view the information through the "Environment Variables" button "My Computer → Properties → Advanced" tab. It is found that the value of the Path item in the "system variable" is empty. This should be the key to the problem. Since the default Path is empty, running the command system such as ipconfig under any path will not find the program. Double-click the path parameter to set the variable value "c:Windowssystem32".

Step 6: After confirming, enter "ipconfig" in the command line mode to display the correct information.

Tip: If you want to set more than one default path can be used, such as c: windowssystem32; c: Windows form, ie in the middle with ";" separated.

Thinking articles:

Analysis of the local fault is because the default path in the environment variable is deleted, the default path is set, the current system requires some DLL or EXE if the program is running Files, as well as Active controls, will go to all default paths to find them. If the corresponding programs are found in these directories, they will be loaded automatically. If they are not found, the error message of a certain file will be reported.

Tips: What is the environment variable environment variables generally refers to some of the parameters used to specify the operating environment of the operating system in the operating system, such as the temporary folder location and system folder location?. This is a bit similar to the default path of the DOS
period. When you run some time series, in addition to looking in the current folder, you will find it in the default path set. Simply put, the "Path" here is a variable that stores the directory path where some common commands are stored.

many of my friends will be installed on your computer dual system, such as the C drive to install Windows 98, D disk to install Windows XP. However, some software is often installed only on Windows 98 systems. Windows XP systems cannot be used normally. The more troublesome but effective method is to install them again. When we understand the purpose of the environment variables, we can solve the software sharing problem of the dual system.

Tip: Why is the software installed in Windows 98 not working under Windows XP (except for green software)? The reason is that when installing software, it is often necessary to copy certain files to the system directory, and use another A system will not work due to the lack of these files. Therefore, we can solve this problem by setting the environment variable.

Example: Solve the problem of dual-system shared application software by setting the default path

Task Description:

Install the dual-system local computer, C drive is Windows 98 system, COOL 3D is installed, and the D drive is Windows XP. It is hoped that the COOL 3D program can be run normally in the D-disk system without reinstalling the software.

directly to COOL 3D installation directory in Windows XP and run its executable file, an error dialog box will pop up.

implementation:

first step: Right-click the mouse and select "Properties" on the Windows XP system "My Computer." In the System Properties window, select the "Advanced" tab and press the "Environment Variables" button.

Step 2: Add the following directory to the Path value in the system variable in the environment variable setting window: "c:windowssystem32;c:windowssystem;c:Windows" (without quotes).

third step: after set up to run smoothly COOL 3D, and if required the system files automatically to the above-mentioned C drive Windows 98 to find the appropriate directory.

Summary:

Some software can be started normally in the D-disk system without modifying the default path in the environment variable, such as Super Jieba software, because they are not going to the system. Copy any files in the directory. In addition, modifying the default path method is not valid for all software. For some software that needs to load the key in the registry to use, there may be a window prompting you to enter the registration code. After inputting the correct value, it can still be used normally. If you still can't start the software by modifying the default path method, it is very likely that Windows 98 and Windows XP have some DLL files that are different and cannot be used universally. In this case, you can only reinstall the software on Windows XP.
Copyright © Windows knowledge All Rights Reserved