开始工作不使用findstr

时间:2017-07-14 20:05:47

标签: powershell start-job

我是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

先谢谢

0 个答案:

没有答案