小编gka*_*nu7的帖子

- 不工作| 电源外壳

我有一个Powershell脚本,它根据我的要求读取CSV文件并过滤掉数据,但问题是它只能在我的Windows 8.1系统上运行,而不是其他地方.该 -gt运营商要精确,脚本在其他系统上运行,如果我改变了-gtlt,le等等.

下面是脚本.

$date1 = Date ("{0:MM/dd/yyyy}" -f (get-date).AddDays(-1)) -format G

echo $date1

Import-Csv C:\avaya\2014.04.csv | Where-Object { $_.Party1Name -eq "User_Name" -and $_.'Call Start' -gt ( $date1 ) } | Export-Csv -Path "result.csv" -NoTypeInformation
Run Code Online (Sandbox Code Playgroud)

powershell

3
推荐指数
1
解决办法
552
查看次数

标签 统计

powershell ×1