Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编写一个脚本,我需要在其中运行一个命令行工具来将 xml 解析为 csv 文件。它是这样工作的:
XmlToCsv.Console.exe -xml file.xml -dir C:/Desktop.
所以我在R中复制了这个
system('XmlToCsv.Console.exe -xml file.xml -dir C:/Desktop')
但它不工作。有谁知道我做错了什么?
一些可能的问题:
位置真的C:/Desktop好吗?如果您的路径中有空格,则该路径需要用引号括起来,并且可能需要已经存在。(不知道XmlToCsv.Console.exe会不会自动创建。)
C:/Desktop
XmlToCsv.Console.exe
如果您使用的是 Windows,XmlToCsv.Console.exe则应包含在 PATH 环境变量中列出的文件夹中。