cURL command failure

后端 未结 4 560
陌清茗
陌清茗 2021-01-13 03:02

I am attempting to use curl commands in a batch file I am writing. I have downloaded the latest curl executable and run it but I cannot use the command \"curl\" What steps

4条回答
  •  天命终不由人
    2021-01-13 03:46

    You need to add it to the path environment variable. If you want to do it through batch then you can update the reg key it stores the directories in with curl.exe like this:

    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path /t REG_EXPAND_SZ /d "curlpath\curl.exe";%path%" /f
    

    Or if the exe isn't dependent on any other files you could copy it to of paths existing directories like C:\Windows\system32.

    Hope this helps!

提交回复
热议问题