【发布时间】:2014-11-05 05:35:08
【问题描述】:
我有这个 CSV 文件:
Time of Day Process Name PID Operation Path Result
52:24.3 notepad.exe 4828 Process Start SUCCESS
52:24.3 notepad.exe 4828 Thread Create SUCCESS
52:24.3 notepad.exe 4828 Load Image C:\Windows\System32\notepad.exe SUCCESS
我将文件导入一个变量:
$csvContent = Import-CSV D:\Logfile.CSV
我试图从“PID”列中提取数据:
$csvContent[0] | select PID
但是没有用。
如何将 PID 列中的数据提取到变量中?
【问题讨论】:
标签: powershell csv