我是Powershell的初学者,我无法使这段代码正常工作
findstr永远不会在磁盘上输出预期的文件
Start-Job -ScriptBlock {
param (
[parameter(Mandatory = $true, ValueFromPipeline = $true)]
[string]$one,
[parameter(Mandatory = $true, ValueFromPipeline = $true)]
[string]$two,
[parameter(Mandatory = $true, ValueFromPipeline = $true)]
[string]$three)
$run = findstr /i """$two""" $one > $three\$($one)$($two).csv
} -Name "Import_$($FilterUSNString)_$($fileName)" -ArgumentList "$global:folder\$fileName", $FilterUSNString, $Global:defaultoutputlocation
先谢谢