Partager via


set

This command sets or clears a local variable.

set [variable name] [value]

Parameters

  • variable name
    Name of the variable to set or clear.
  • value
    New value to assign to the variable. If this argument is not specified, the existing variable definition is completely removed.

Remarks

The value of a variable can be read by including its name in a script surrounded by a pair of percent signs (%).

See Also

Environment Commands

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.