Displaying environment variables windows xp




















Adding directories to PATH can be very useful if you use scripts or the command line for system maintenance. For example, it can be convenient to put the directory where you keep backups into the PATH variable. It can also be useful to modify PATH if you put programs in a directory different from the usual one. Note that the directory names are separated by a semicolon in the command statement. An alternate form omits the "equals" sign. This command will replace any previous directories that were in the PATH variable.

It is essential to remember that any changes that are made in a command window only endure until the window is closed. For permanent changes, use the method discussed in another section. It is also possible to use the command-line executable setx. Any file that is in a directory listed in the PATH variable can be found or opened by direct reference to the name of the file without having to specify the drive and directories where it is located.

This is very handy in scripting and in other ways. For instance, the name of an executable file that is in a directory listed in the PATH variable can be entered into Start-Run to open certain applications more on this subject here. The file is sol. Normally this entire string would have to be used in order to reference the Solitaire game. Because its directory is listed in the PATH variable, however, it is sufficient to reference just the file name sol.

As is explained on other pages , file extensions tell Windows what it is supposed to do with a file. Certain file extensions indicate that the file is executable ; that is, the file opens a program or does something.

The extension. EXE is the most common. Thus the filename sol. If files have the same name but different extensions, the operating system searches in the following order of precedence:. BAT, and. Existing variables can be edited or deleted and new ones can be added in several ways.

For temporary changes, the command " Set" can be used in scripts or in a command window. Note that the there must be no spaces on either side of the "equals" sign.

Changes made with "Set" disappear when the command window is closed, thus rendering this method fairly uninteresting for the average PC user. A more useful application of "Set" is to list the environment variables. Open a command window and enter "set" to see what the variables are on your system. Those who wish can consult this Microsoft article for more details about "Set". Variables that are recognized only in the user context. You can use these variables within sections in the.

You can use these variables in the. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Is this page helpful? Please rate your experience Yes No. Any additional feedback? Submit and view feedback for This product This page. View all page feedback. In this article. Version The file-system directory that contains administrative tools for all users of the computer.

The file-system directory that corresponds to the non-localized Startup program group for all users. The file-system directory that contains application data for all users. The file-system directory that contains files and folders that appear on the desktop for all users. The file-system directory that contains documents that are common to all users. The file-system directory that serves as a common repository for favorites common to all users. This is a variable containing a list of paths where Windows will look for the exe,.

Then go to the "Advanced" tab and click on the bottom of the window "Environment Variables" button. You will find a list of system variables as well as those specific to your user account. To change an environment variable, select it and click "Edit". To add a path in this variable, add a ; at the end and enter the path to add, behind this ;. Then click on the left menu "Advanced System Settings".

Then go to the tab "Advanced System Settings" if it isn't already do and click on the "Environment Variables" button on bottom of the window.



0コメント

  • 1000 / 1000