How to remove " from the variable

  • Thread starter Thread starter Begineer
  • Start date Start date
B

Begineer

Hello:

If the variable as show below.

set TEST="Test 1 2 3 4 5"

echo %TEST% will show as "Test 1 2 3 4 5"

How can I display the variable show as

Test 1 2 3 4 5


Thanks!
 
If the variable as show below.

set TEST="Test 1 2 3 4 5"

echo %TEST% will show as "Test 1 2 3 4 5"

How can I display the variable show as

Test 1 2 3 4 5

@echo off
for %%a in (%test%) do echo %%~a
 
Back
Top