• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

set

Synopsis

The set command manipulates environment variables from the command line.

TIP

image with no caption

Because the command prompt's environment is reset when its window is closed, the usefulness of set is fairly limited. To affect more permanent changes to environment variables, go to Control Panel System Advanced tab Environment variables.

Type set without options to display all the current environment variables, or use this syntax:

set [variable[=[string]]]
set /p variable=[promptstring]
set /a expression
               

Type set with only a variable name (no equal sign or value) to display a list of all the variables whose prefix matches the name. The set options are:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint