header image

Pipeline revisited

Posted by: | June 2, 2011 | No Comment |

Yesterday’s post about thee pipeline has triggered a number of comments. It is possible to make something like this

Get-ChildItem -Path c:\test -Filter proc?.txt | Copy-Item c:\test\xyx.txt

 

work.  My objective wasn’t to get a piece of working code using the pipeline but to demonstrate why the we get errors sometimes when piping the output of one cmdlet into another.

 

Thank you all for taking the time to comment

under: PowerShell Basics