Link to home
Create AccountLog in
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
Avatar of NVIT
NVIT
Flag of United States of America image

But didn't you say it's blocked at the client end, BEFORE the user can even open the zip?
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!
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?
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of sunhux
sunhux

ASKER

Yes, Olemo got my requirements right.

I'll test out the PowerShell script