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

Copy-toZip Woes

$
0
0

Im back again, I have been working with many variations of copy-to zip using  for-each($_. in $Variable) 

Copy-tozip...

dir C:\Photos\*.JPG | Copy-ToZip -ZipFile C:\Photos2

Looks to be the simplest method but i get 

You cannot call a null method on a null-values expression

Do i need to set a flag?


Viewing all articles
Browse latest Browse all 6937

Trending Articles