0
我想为curl命令创建一个windows批处理文件,每五分钟运行一次并将其保存到本地文件中。这里是我的卷曲命令curl的批处理文件
curl -k https://root:[email protected]/webacs/api/v1data/ClientDetails?.full=true > C:\Users\Desktop\Sample1\curl
请问我该怎么做批处理文件?
我想为curl命令创建一个windows批处理文件,每五分钟运行一次并将其保存到本地文件中。这里是我的卷曲命令curl的批处理文件
curl -k https://root:[email protected]/webacs/api/v1data/ClientDetails?.full=true > C:\Users\Desktop\Sample1\curl
请问我该怎么做批处理文件?
就像这样:?
@echo off
echo Begining at %time%
set file=https://root:[email protected]/webacs/api/v1data/ClientDetails?.full=true
if not exist "C:\Users\Desktop\Sample1\curl" echo. > "C:\Users\Desktop\Sample1\curl"
:top
echo Ran at %time%
curl -k %file% >> C:\Users\Desktop\Sample1\curl
echo waiting 5 minutes... Press Q to download now.
choice /c q /d q /t 300 /n
goto top
注意:您可能需要将URL从
https://root:[email protected]/webacs/api/v1data/ClientDetails?.full=true
改变
https://root:[email protected]/webacs/api/v1data/ClientDetails?.full^=true
我不能肯定它会如何处理它。
你这样做,什么不工作? – SomethingDark
xml文件中未显示任何详细信息。 – jei
...什么XML文件? – SomethingDark