使 Windows 批处理命令等待 CURL 结果,然后再继续


for /R %%f in ("*") do (
for /F %%I in ('C:curlbincurl -v -L ipinfo.io') do set myip=%%I &
start.exe -ip %myip%
)

是否可以让窗口蝙蝠等待卷曲结果,在这种情况下(myip(,然后将其传递给开始.exe作为参数? 谢谢。

Setlocal EnableDelayedExpansion

多亏了 Compo,我现在能够在下一个命令之前加载 ip。

相关内容

最新更新