"Alan Tang" wrote in message
> Hello:
>
> How can I remove the double quote when echo a env var?
>
> set TEST="Test 1 2 3 4"
>
> echo %TEST% will be "Test 1 2 3 4"
> how can be the result is Test 1 2 3 4 ?
Use the :string1=string2 substitution syntax with a nul string2.
See SET /? for full details.
Typical syntax:
ECHO. The unquoted contents of MyVar are %MyVar:"=%
--
William Allen
Free interactive Batch Course
http://www.allenware.com/icsw/icswidx.htm
Batch Reference with examples
http://www.allenware.com/icsw/icswref.htm
From email address not checked. Contact us at
http://www.allenware.com/