Reputation: 1327
Any ideas how to use the command 'dir' to more than 1 folder in one command?
dir c:\A | c:\test\B
is not working. Im not good with pipes...
Upvotes: 2
Views: 5182
Reputation: 180878
Use the Get-ChildItem
cmdlet instead, or use DIR and separate your sources by commas, not spaces. DIR doesn't work the same in PowerShell as it does in a DOS window.
http://technet.microsoft.com/en-us/library/ee176841.aspx
Upvotes: 3