Code: Select all
@echo off
FOR /F "usebackq delims=;" %%1 IN ('aa; bb; c c') DO ECHO %%1
result
Code: Select all
aa bb c c
Einstein1969
Moderator: DosItHelp
Code: Select all
@echo off
FOR /F "usebackq delims=;" %%1 IN ('aa; bb; c c') DO ECHO %%1
Code: Select all
aa bb c c
Code: Select all
@echo off
FOR /F "usebackq delims=;" %%1 IN (`echo aa; bb; c c`) DO ECHO %%1
Output:
aa bb cc
Code: Select all
@echo off
FOR /F "usebackq tokens=* delims=;" %%1 IN ('aa; bb; c c') DO ECHO %%1
Output:
aa bb cc
Code: Select all
@echo off
FOR /F "usebackq tokens=1 delims=;" %%1 IN ('aa; bb; c c') DO ECHO %%1
Output:
aa bb cc
Code: Select all
@echo off
FOR /F "usebackq tokens=2 delims=;" %%1 IN ('aa; bb; c c') DO ECHO %%1
Output:
Code: Select all
@echo off
for /f "usebackq delims=" %%A in (',,,;;;;==== aa,,,;;;;==== bb,,,;;;;==== c,,,;;;;==== c,,,;;;;==== ') do echo [%%A]
Code: Select all
[ aa bb c c ]
Code: Select all
@echo off
FOR /F "usebackq delims=;" %%1 IN ('aa^; bb^; c c') DO ECHO %%1
Code: Select all
aa
Code: Select all
@echo off
FOR /F "usebackq delims=;" %%1 IN ('aa^;^ bb^;^ c^ c') DO ECHO %%1
Code: Select all
@echo off
FOR /F "delims=;" %%1 IN ("aa; bb; c c") DO ECHO %%1