jude2
Newbie
Posts: 1
Registered: 12/16/2004
Member Is Offline
|
| posted on 12/16/2004 at 04:54 PM |
|
|
how to maintain file paths in a recursive directory zip
Hi,
I am recursively zipping a directory (with underlying subfolders) for ftp and extraction on a remote server and I wish to maintain the subfolder
information in the appropraite files but although I set the property "KeepPaths" to "true" the subfolder information is not
maintained in the resultant zip file.
I would really appreaciate it if someone could spread some light on this for me.
Cheers Jude
|
|
|
wit
Member
Posts: 24
Registered: 11/19/2004
Member Is Offline
|
| posted on 7/1/2005 at 06:30 PM |
|
|
try to use code like follows
'Zip files
Set Zip = Server.CreateObject("SoftComplex.Zip")
Zip.New("c:\\test.zip")
Zip.KeepPaths = True
Zip.RelativePaths = True
Zip.SaveEmptyDirectories = True 'if you need to save empty directories
Zip.RootDirectory = "c:\\temp\\test_files"
Zip.FileList.Add("*.*")
Zip.Save
'Unzip files
Set Zip = Server.CreateObject("SoftComplex.Zip")
Zip.Open("c:\\test.zip")
Zip.RecreateDirectories = True
Zip.Read
Zip.DestDirectory = "c:\\temp\\unzip_files"
FilesCount = Zip.Unzip
|
|
|