Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: how to maintain file paths in a recursive directory zip
jude2
Newbie

Posts: 1
Registered: 12/16/2004
Member Is Offline
posted on 12/16/2004 at 04:54 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
wit
Member

Posts: 23
Registered: 11/19/2004
Member Is Offline
posted on 7/1/2005 at 06:30 PM Reply With Quote

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
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Free Download Free Download
Product Documentation Documentation
Documenation Page
Code Samples
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004