This article was previously published under Q36605
This article has been archived. It is offered "as is" and will no longer be updated.
When setting environment variables, the following commands producedifferent environment variables:
SET FIRST=one SET FIRST =two
The command SET now displays the following (along with all theother environment variables):
FIRST=one FIRST =two
Trailing spaces are not removed from the environment variable that isbeing set. The variables are fully functional and may be addressed inbatch files by using the same syntax when referring to the variable.For example, the following line