extracting files from a zip file

by sukans1995 at 2013-05-03 14:03:49

1. I get a zip file by email
2. extract the file from the zip file and save it on a drive with

Need a script to automate this.

by riffy at 2013-05-03 16:54:56
If you have the latest dotNet 4.5 installed you can use the zip functionality included in it:

[System.IO.Compression.ZipFile]::ExtractToDirectory($sourceFile, $targetFolder)