Parameters 将参数设置为文件

Parameters 将参数设置为文件,parameters,vbscript,batch-file,Parameters,Vbscript,Batch File,你能帮忙吗?我知道如何自动修改.rcq文件吗?VBS Structure file post.rcq: <?xml version="1.0" encoding="UTF-8"?> <rest-client version="2.3.3"><request><http-version>1.1</http-version> <URL>http://bm.com/opr-console/rest/9.10

你能帮忙吗?我知道如何自动修改.rcq文件吗?VBS

           Structure file post.rcq:
<?xml version="1.0" encoding="UTF-8"?>
<rest-client version="2.3.3"><request><http-version>1.1</http-version>

<URL>http://bm.com/opr-console/rest/9.10/event_list/9752951c-0392-71e1-01a3-ac10016b0000</URL>

<method>PUT</method><auth-methods>DIGEST</auth-methods>
<auth-preemptive>true</auth-preemptive><auth-username>admin</auth-username>
<auth-password>rO0ABXQABWFkbWlu</auth-password>
<body content-type="application/xml" charset="UTF-8">&lt;event xmlns="http://www.hp.com/2009/software/opr/data_model"&gt;&#x0D;
&lt;state&gt;closed&lt;/state&gt;&#x0D;
&lt;severity&gt;normal&lt;/severity&gt;&#x0D;
&lt;/event&gt;</body></request></rest-client>
结构文件post.rcq:
1.1
http://bm.com/opr-console/rest/9.10/event_list/9752951c-0392-71e1-01a3-ac10016b0000

放置…

您不应该对批处理文件执行此操作(有几个原因)。通过VBScript,您可以使用MSXML ActiveX对象解析XML,修改URL(使用字符串函数)并将其写回磁盘。

我完全不理解您的问题。Udo:我认为他们希望通过用其他内容替换URL元素末尾的十六进制内容来引用其他资源。