I have been looking for a way to download a zip file from a URL, have it extracted to a destination folder and then overwrite any files which are the same. I looked at powershell scripts but could not get one to work.
Working on a windows 2008 r2 server. Any insights would be great on the most efficent, easiest way to achieve this
cheers
If you download and install
7Zip
form here, then use the followingPowerShell
command that uses the7z.exe
file. You will be able to unzip and overwrite files to a given location.Parameters:
If the zip file you want to unzip is on a website you will need to download the file first and then unzip it. You can download files from a website in
PowerShell
like this: