我试图将令牌传递给批处理脚本中的子程序 -
SET devices=host1 host2 host3
FOR /F "tokens=* delims=," %%G IN (%devices%) DO CALL :sendReq %%G
:sendReq
curl.exe http://%1:1234/service/monitor
GOTO :EOF
Run Code Online (Sandbox Code Playgroud)
问题 -
The system cannot find the file host1- 错误信息不确定原因.
%1是不是要解决host1?