PowerShell - 讀取 CSV 檔案



Cmdlet

Get-Content cmdlet 用於讀取 csv 檔案的內容。

在此示例中,我們正在讀取 test.csv 的內容。

Get-Content D:\temp\test\test.csv 

輸出

您可以在 PowerShell 控制檯中看到以下輸出。

Mahesh,Suresh,Ramesh
powershell_files_io.htm
廣告
© . All rights reserved.