我试图令牌传递给子程序批量脚本 -批处理脚本 - 调用子程序每个令牌
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
问题 - The system cannot find the file host1
- 是错误消息,不知道为什么。
%1
不解析为host1
?
@Mat。感谢您的编辑。下次会这样做。 – liv2luv 2012-04-17 18:46:26