dsfphczao23473056 2015-09-21 06:27 采纳率: 100%
浏览 637

如何使用Windows命令提示符多次运行curl脚本

I am a total novice at scripting, and need some help in curl scripting. I need to access a URL multiple times using CURL script in Windows command prompt, So that would need calling curl script multiple times. Is there any way to : (A) access the URL request multiple times using single curl script, (B) or a way in command prompt to call the single curl script multiple times?

  • 写回答

1条回答 默认 最新

  • drdawt9210 2016-04-20 14:30
    关注

    To execute a curl program 3 times, try...

    for /L %i in (1,1,3) do your_curl_script
    

    The last number in (1,1,3) controls your looping count.

    NOTE: This is a solution to your (B) option. You could put your CURL code inside a batch file and call the batch file X number of times. The DOS command line would look slightly different, as such:

    for /L %i in (1,1,3) do your_batch_file
    
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题