user1293029
user1293029

Reputation:

bat file variables return nul

I am writing a bat file and the variable return nul:

@echo Off
set DEF_APACHE_NAME = Apache
echo DEF_APACHE_NAME: %DEF_APACHE_NAME%

Returns:

DEF_APACHE_NAME:

Anyone know why the "Apache" is not in string?

Upvotes: 1

Views: 47

Answers (1)

foxidrive
foxidrive

Reputation: 41244

remove the spaces around the = sign.

Upvotes: 1

Related Questions