set in Window Server 2008

In this article I am going to explain about set command in Windows Server 2008 operating system and also explain it's related syntax.
  • 1364

set command in window server 2008

set command is a command-line tool that is built in Windows Server 2008. This command is available in Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP. set command is used to display, sets, or removes CMD.EXE environment variables. If used without parameters, set displays the current environment variable settings.

Syntax

set [<Variable>=[<String>]]

set [/p] <Variable>=[<PromptString>]

set /a <Variable>=<Expression>

Parameter

Parameter Description
<Variable> It is specify for the environment variable to set or modify.
<String> It is specify for the string to associate with the specified environment variable.
/p It is set the value of Variable to a line of input entered by the user.
<PromptString> This is the optional. Specifies a message to prompt the user for input. This parameter is used with the /p command-line option.
/a It is set String to a numerical expression that is evaluated.
<Expression> It is specify for a numerical expression. See Remarks for valid operators that can be used in Expression.
/? it is display help at the command prompt.

Ask Your Question 

Got a programming related question? You may want to post your question here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.