Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Copy-item and -include option

$
0
0

hi gurus

I would like to accomplish the following:

$filter= "*.ntx,*.dbf,*1301.*"

copy-item  -path -destination -include $filter

I have tried -include with " and without " and it does nothing , what am I missing, as you can tell I am new to PS so go easy in case of being a stupid thing.

 

Thanks a bunch


Viewing all articles
Browse latest Browse all 6937

Trending Articles