0
现在,在PowerShell版本4.0中,我的代码如下所示,并且工作正常。如何在PowerShell版本2.0中获取csv头文件列表
$columns= (Get-Content $csvfile -First 1).Split($csvdelimiter)
但我们的一些生产服务器的使用PowerShell版本2.0.I正在逐渐“参数无法找到匹配的参数名称为先”,因为2.0没有这个“ - 第一”的方法。 所以我怎么能转换,支持的PowerShell 2.0
- 第一不提供的PowerShell 2.0 – KrishOnline
@KrishOnline你错了。 –
道歉你是正确的。谢谢你 – KrishOnline