【发布时间】: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 文档中我找不到有关此问题的一些信息
【问题讨论】:
标签: windows windows-7 powershell-5.0 export-csv