Windows xp environment variables desktop




















Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy. Constant special item ID list CSIDL values provide a way to identify folders that applications use frequently but may not have the same name or location on any given computer.

Variables that are processed for the operating system and in the context of each user. 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. Can you help us improve? Resolved my issue. Clear instructions. Easy to follow. No jargon. Pictures helped. Didn't match my screen.

Incorrect instructions. Too technical. Not enough information. Not enough pictures. Any additional feedback? The variables are enclosed by percent signs when used in scripts or the command line, as is shown in the table. Although the variables are shown in upper case, they are not case-sensitive. The so-called predefined variables are generally unchanged during a login session but there are also some dynamic variables whose value may change.

Some of these are listed in the next table. Environment variables are very convenient in scripts where certain standard directories and parameters need to be referenced but where the actual locations or names can vary from computer to computer. Note that the presence of spaces in some names may necessitate the use of enclosing quotation marks around environment variables in scripts.

By having a placeholder, no prior knowledge is required of such details as the exact location of Windows or who is logged in. Some possibilities are explored in the following sections. The path to a file is basically its address on the computer. It tells programs how to find a file. It is the drive plus any directories and sub-directories where the file is located. Typically, this is a group of directories where executable files that are repeatedly used are to be found.

Examples of the default values are listed in the first table above; in this case, they are the Windows directory and two of its important system sub-directories. The PC user can also modify the contents using methods discussed further on. 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.



0コメント

  • 1000 / 1000