Hello! How to pass argument list to function where each argument contains spaces in Batch Script? Here is my code:
I want to obtain:
output.
Code:
@echo off
set list="first value" "second value"
call :p "%list%"
pause
@echo on
@goto eof
:p
for %%v in (%~1) do echo %%v
exit /b 0
:eof
Code:
first value
second value
Last edited: