如何通过.bat文件编辑XML文件?

时间:2016-08-17 13:27:37

标签: xml batch-file cmd

我想在特定位置添加特定配置(web.config)xml文件,例如“C:\ home \ dota”。配置文件有一个<configurations>选项卡,在其下方,我想输入此配置以启用CORS。

<configuration>
   <system.webServer>
      <httpProtocol>
         <customHeaders>
            <add name="Access-Control-Allow-Origin" value="*" />
         </customHeaders>
      </httpProtocol>
   </system.webServer>
</configuration>

如何使用Windows批处理文件实现此目的,请在这方面帮助我。

0 个答案:

没有答案