我有下面的XML格式如何通过CMD读取XML值/ PowerShell的
我怎么能读的Tar Path
<?xml version="1.0" encoding="utf-8"?>
<Foo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Bar Path="c:\program files\bar" />
<Tar Path="c:\program files\tar" Include="All" />
<Updates></Updates>
</Foo>
值在这个例子中,我需要获得的价值:c:\program files\tar
按照Alex的评论,它也可以在PowerShell脚本中完成。
我需要将这段代码添加到现有的.cmd文件中,是否可以从.cmd调用PowerShell脚本并将结果返回给cmd?
使用其他任何比批处理/ cmd将被建议 –
真的,但不幸的是我需要CMD批次 – user829174
vbscript,jscript,powershell?全部从命令行运行 –