[2005] Self opening file inside ZIP
Hi,
Im looking for the best method of automatically extracting a webpage file from a zip and opening it up on the users pc.
I have 5 files in a zip file and when the user clicks on xxxxxx.zip i need only the .htm page to open up locally.
Is this possible or is there any kind of workaround if not?
thanks!
Re: [2005] Self opening file inside ZIP
No, and any workaround would be fixed so it doesn't work as well
Suppose you would zip a trojan, virus, backdoor goodies like that in a zip and on opening they would be executed!
Re: [2005] Self opening file inside ZIP
Yea, it's a huge security risk. ZIP files and other "Archive" class file structures (RAR, ACE, 7Z, etc...) are meant to be just that, archives. Compressed storage containers to make storage and movement of files easy.
Giving them the ability to execute something when the file is opened is somewhat like giving shotgun shells the ability to explode when the box is opened.
Re: [2005] Self opening file inside ZIP
Thanks for your replies, i see what you mean.
What about making the other files 'hidden' so that only the .htm file is shown or atleast more prominent?
This is so they select the htm file and not any other file in the zip.
thanks
Re: [2005] Self opening file inside ZIP
You can add to ZIP archives a tag that will open up a "readme" of text; usually used to provide basic instructions upon opening the ZIP. Not all unzip programs support it though.
You can set up your file structures so that inside the zip, you have one .HTM file and a directory containing everything else. Label the .HTM file something like README1ST.HTM or something to draw attention to it.
Re: [2005] Self opening file inside ZIP
You could change the extension of the file and associate that extension with your own program. Your program would then unzip the archive and then show the HTML file.