代码之家  ›  专栏  ›  技术社区  ›  Thufir

如何使用powershell将CSV文件转换为XML?

  •  0
  • Thufir  · 技术社区  · 5 年前

    Convert-To-Xml

    Convert-To-Xml : The term 'Convert-To-Xml' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:32
    + Import-Csv "./Processes.csv" | Convert-To-Xml
    +                                ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Convert-To-Xml:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    

    我在尝试 Microsoft 例子: Import-Csv "./Processes.csv" | Convert-To-Xml

    0 回复  |  直到 5 年前