renaming 2 files within a zip after downloading

We have a customer with a proprietary file share server (developed using .Net) &
whenever users download the zip, it gets blocked by IPS due to the presence of
2 files in the zip (metadata.xml & jjjjjj.config).

However, if these 2 files were renamed to some other names, the download
goes through.

Is there any way that on the client end that by clicking an icon, it will download
the zip, unzip it & then rename the 2 files back to their original names?

Do provide some sample Windows batch & PowerShell script that we can put
in script which I'll just create a Shortcut icon on the desktop
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITEnd-user supportCommented:
But didn't you say it's blocked at the client end, BEFORE the user can even open the zip?
Dany BalianCTOCommented:
If the file is getting blocked from downloading because of its contents then you can't download it to rename its contents.. You have to rename the files before uploading it online.. Then u can make a script that downloads the zip, unzips, renames the wrongly named files, to whatever they're supposed to be then zip back!
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
As I read it, you are after this: the files in the ZIP are already renamed, and you just need to have them named back after downloading, and you need a batch file doing all the work?
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
In short, the PS code is
# custom vars to change
$uri = ""
$zip = "C:\Temp\"
$dest = "C:\Temp\renamed"

# download and extract
$webclient = New-Object System.Net.WebClient
$webclient.DownloadFile($uri, $zip)
$shell = new-object -com shell.application 

# change this file names
rename-item "$dest\file1" "newName1"
rename-item "$dest\file2" "newName2"

remove-item $zip

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sunhuxAuthor Commented:
Yes, Olemo got my requirements right.

I'll test out the PowerShell script
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
File Sharing Software

From novice to tech pro — start learning today.