How to remove " from the variable

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!
 
F

foxidrive

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top