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: Problems zipping Files
gian_damico
Junior Member

Posts: 3
Registered: 6/20/2007
Location: Venezuela
Member Is Offline
posted on 6/20/2007 at 04:19 PM Reply With Quote
Problems zipping Files


We are testing your evaluation version using an VBScript user defined function for file compression. The code is listed bellow:

WScript.Echo ZipFile("C:ZipDirectorytest.zip",True,"C:SourceFilesDir", "FilesToZip","files to exclude")

Function ZipFile(ZipFileName,Mover,RootDir,FilesToAdd,FilesToExclude)
Set Zip = CreateObject("Softcomplex.Zip")
Zip.New ZipFileName
Zip.RootDirectory = RootDir
Zip.MoveFiles Mover
ArrExclude = Split(FilesToExclude," ")
For Each Excluded In ArrExclude
Zip.ExcludeList Excluded
Next
Zip.FileList.Add FilesToAdd
count = Zip.Save
ZipFile = count
End Function

We are getting this error message:

Error de Microsoft VBScript en tiempo de ejecuciA?n: El objeto no acepta esta propiedad o mA?todo: 'Zip.MoveFiles'

why?
View User's Profile View All Posts By User U2U Member
wit
Member

Posts: 23
Registered: 11/19/2004
Member Is Offline
posted on 6/20/2007 at 04:32 PM Reply With Quote

should be

Zip.MoveFiles = Mover

and

Zip.ExcludeList.Add Excluded
View User's Profile View All Posts By User U2U Member
gian_damico
Junior Member

Posts: 3
Registered: 6/20/2007
Location: Venezuela
Member Is Offline
posted on 7/4/2007 at 02:55 PM Reply With Quote
Thanks


it works, thanks wit
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