bat curl 定時請求

@echo off
:loop
call:sleep 30
::調用方法call:sleep [毫秒] (1秒=1000毫秒)
curl https://stage.coolfen.com/supplychain/api/health
echo.
::pause
goto loop
 
:sleep
set tmp="%temp%\tmp.vbs"
echo wscript.sleep %1>%tmp%&%tmp%&del %tmp%
goto :eof
相關文章
相關標籤/搜索