Article ID: 36605 - View products that this article applies to.
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 produce different environment variables:
SET FIRST =two
The command SET now displays the following (along with all the other environment variables):
FIRST=oneTrailing spaces are not removed from the environment variable that is being set. The variables are fully functional and may be addressed in batch files by using the same syntax when referring to the variable. For example, the following line
echo %FIRST %will print the word "two" on the screen.
Article ID: 36605 - Last Review: August 23, 2013 - Revision: 2.0
Contact us for more help
Connect with Answer Desk for expert help.