Avatar of sunhux
sunhux
 asked on

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
File Sharing SoftwareScripting LanguagesWindows BatchPowershell

Avatar of undefined
Last Comment
sunhux

8/22/2022 - Mon
NVIT

But didn't you say it's blocked at the client end, BEFORE the user can even open the zip?
Dany Balian

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

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?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER CERTIFIED SOLUTION
Qlemo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
sunhux

ASKER
Yes, Olemo got my requirements right.

I'll test out the PowerShell script