Displays, sets, or removes environment variables.
|variable||Specifies the environment-variable name.|
|string||Specifies a series of characters to assign to the variable.|
SET without parameters to display the current environment variables.
SET variable= without a value to delete variable from the environment.
SET variable=value to assign value to variable.
You can now use %variable% in batch files whenever you need its value.
|MS-DOS and PC-DOS
(including Win95's MS-DOS 7)
|as described above|
|OS/2 Warp & eCS||as described above, though in CONFIG.SYS only the
|Windows NT 4/Windows 2000||special features: simple math with /A and /P switches, string manipulation and delayed variable expansion|
page last uploaded: 2018-12-20, 10:49