使Windows Batch命令等待CURL结果再继续

时间:2019-11-22 13:59:36

标签: windows batch-file

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

是否可以使Windows bat等待在这种情况下(myip)的curl结果,然后将其作为args传递给start.exe? 谢谢。

1 个答案:

答案 0 :(得分:0)

(df.groupby(['username', 'prediction']).prediction.count().unstack(fill_value=0).
    rename({0: 'count_human', 1: 'count_bot'}, axis= 1))

Out[34]:
prediction  count_human  count_bot
username
foo                   2          3
foo1                  5          2
foo2                  0          3

感谢Compo,我现在可以在下一条命令之前加载ip。