gian_damico
Junior Member
Posts: 3
Registered: 6/20/2007
Location: Venezuela
Member Is Offline
|
| posted on 6/20/2007 at 04:19 PM |
|
|
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?
|
|
|
wit
Member
Posts: 23
Registered: 11/19/2004
Member Is Offline
|
| posted on 6/20/2007 at 04:32 PM |
|
|
should be
Zip.MoveFiles = Mover
and
Zip.ExcludeList.Add Excluded
|
|
|
gian_damico
Junior Member
Posts: 3
Registered: 6/20/2007
Location: Venezuela
Member Is Offline
|
| posted on 7/4/2007 at 02:55 PM |
|
|
Thanks
it works, thanks wit
|
|
|