|
-
Aug 7th, 2008, 09:18 AM
#1
Thread Starter
Lively Member
[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!
-
Aug 7th, 2008, 09:24 AM
#2
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!
 why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
for every question you ask provide an answer on another thread.
-
Aug 7th, 2008, 09:48 AM
#3
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.
-
Aug 7th, 2008, 10:06 AM
#4
Thread Starter
Lively Member
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
-
Aug 7th, 2008, 10:11 AM
#5
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.
-
Aug 7th, 2008, 10:12 AM
#6
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|