Home Forums Programming Powershell Copy a file from each subdirectory to one folder RE: Copy a file from each subdirectory to one folder

  • erikd (11/15/2013)


    :unsure:

    It is easy to convert:

    $a = Some-CommandA

    Write-Host $a

    $b = Some-CommandB $a

    Write-Host $b

    $c = Some-CommandC $b

    Write-Host $c

    to:

    Some-CommandA | Some-CommandB $_ | Some-CommandC $_

    Gaz

    -- Stop your grinnin' and drop your linen...they're everywhere!!!