簡體   English   中英

PowerShell Export-Csv 無法與 UseQuotes 參數一起使用

[英]PowerShell Export-Csv can't work with UseQuotes parameter

我試圖從我的 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 文檔中,我找不到有關此問題的一些信息

鏈接在這里

必須安裝 PowerShell 版本 7.x (PowerShell Core)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM