Login | |
|
 |
RE: Trying to zip a file - 5/23/2008 1:39:07 AM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1183
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
As far as I know, the line: fso.CreateTextFile(ZipFile, true).WriteLine "PK" & Chr(5) & Chr(6) & String(18, 0) .........################### Should read: fso.CreateTextFile(ZipFile, true).WriteLine "PK" & Chr(5) & Chr(6) & String(18, 0) The .........################### on the end is nonsensical. EDIT: ok, I just re-read your post, and figured out what you were asking. Sorry. This code: fso.CreateTextFile(ZipFile, true).WriteLine "PK" & Chr(5) & Chr(6) & String(18, 0) Creates a zip file with the appropriate header, so that we can append the actual data to it later on. If you look at a normal zip file with a HEX editor, you will see that the first few characters are equiv. to the header being created by the line you referenced. Once the file is actually creted, we can then open it and add items to it.
< Message edited by DiGiTAL.SkReAM -- 5/23/2008 1:43:05 AM >
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|