【问题标题】:PowerShell Export-Csv can't work with UseQuotes parameterPowerShell Export-Csv 不能与 UseQuotes 参数一起使用
【发布时间】:2020-06-29 14:13:14
【问题描述】:

我正在尝试从我的 Powershell 脚本开始:

Import-Csv -Path $filecur -Delimiter ";" | Export-Csv -Path $filenext -Delimiter ";" -NoTypeInformation -Encoding Unicode -UseQuotes Never

但是在执行 Powershell 脚本命令 promt 后显示下一个文本:

Export-Csv : A parameter cannot be found that matches parameter name 'UseQuotes'.
At C:\Users\vad\Desktop\QuatesDeleter.ps1:4 char:116
+ ... ilenext -Delimiter ";" -notypeinfo -Encoding Unicode -UseQuotes Never
+                                                          ~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Export-Csv], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.ExportCsvCommand

我该如何解决这个问题? 我的电脑在Windows 7,SP1,X64下运行,PowerShell版本是5.1.14409.1005。

在 Microsoft 文档中我找不到有关此问题的一些信息

Link here

【问题讨论】:

    标签: windows windows-7 powershell-5.0 export-csv


    【解决方案1】:

    需要安装 PowerShell 版本 7.x (PowerShell Core)。

    【讨论】:

      猜你喜欢
      • 2019-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-30
      • 1970-01-01
      • 1970-01-01
      • 2016-12-10
      • 2013-01-03
      相关资源
      最近更新 更多