0
什么即时试图做的是:批处理文件:读取输入,测试它们,保存结果到txt?
- input.txt中
- test.bat的
- output.txt的
@echo off setlocal set "SECRET=for /f "delims=" %%L in (input.txt)" // reads text line by line // set "URL=curl --data-binary '' "http:localhost:port/page?requestType=SECRET=" // a line from input.txt will be set after SECRET= to test then move to another line
等..//
set "LOG=C:\output.txt" // save results >"%LOG%"
我正在尝试使这项工作。请任何帮助。感谢
太棒了!正如我想要的那样工作!谢谢,现在结果文件有这样的{“test”:“value”,“test2”:“value2”,“test3”:value3“}我怎么可以添加一行也会读取结果文件中的value3并进行相同的测试,并保存到另一个文件?谢谢 – xhxx
检查我的编辑! – SachaDee
很好,但output.txt以UTF-8格式,所以%% a_Result.txt只显示第一个值3(tokens = 6)有没有一个方法来显示value3没有“” – xhxx