This is the call inside of cfscript tags in d:\inetpub\wwwroot\zipitup.cfm ZipFileNew(expandPath("gildor.zip"),expandPath("/gildor"));
This is the call using the zip.cfc called from d:\inetpub\wwwroot\zipper.cfm zip = CreateObject("component", "Zip"); status=zip.AddFiles("d:\inetpub\wwwroot\gildor1.zip", "","d:\inetpub\wwwroot\gildor\"); I am having problems with pathing I am sure and when in the zipcfc I do not declere a files argument it raises a bitch. -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Sunday, April 16, 2006 10:44 AM To: CF-Talk Subject: RE: Using first CFC wih 6.1 (TRYING AGAIN) Well looking at this: AddFiles(zipFilePath [, files, directory, filter, recurse, compression, savePaths]) You'll want to pass in the zip file path(where your zip will end up), the directory(path to the directory you want to zip) and recurse(true if you want everything in it). Use cfinvoke to pass in named params. Can we see the code you're using at the moment? Adrian Oh and Terry Troxel said: "Or if there is a better way please reply." Which is why I posted the other link :O) -----Original Message----- From: Terry Troxel [mailto:[EMAIL PROTECTED] Sent: 16 April 2006 17:48 To: CF-Talk Subject: RE: Using first CFC wih 6.1 (TRYING AGAIN) Adrian, I have that library as well. Please look at my example paths and help me a bit more then just saying use this instead. I would really appreciate the help. -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Sunday, April 16, 2006 9:39 AM To: CF-Talk Subject: RE: Using first CFC wih 6.1 (TRYING AGAIN) I've used ZipFileNew with success, if you can't get what you're currently working with to work, try this instead: http://www.cflib.org/udf.cfm?ID=744 I use it to zip up directories. Adrian -----Original Message----- From: Terry Troxel [mailto:[EMAIL PROTECTED] Sent: 16 April 2006 17:33 To: CF-Talk Subject: Using first CFC wih 6.1 (TRYING AGAIN) Could someone please help a newbie in 6.1 to implement my first cfc? I posted this yesterday but it must have got lost in the shuffle when the list was offline. It seems I cannot get it to work without the "files" argument. I want all the files This is the argument list the cfc uses: AddFiles(zipFilePath [, files, directory, filter, recurse, compression, savePaths]) I am trying to use the zipcfc from the exchange and would Appreciate it if someone could share an example of how to Implement it with example paths, parameters, etc I have on my server. I have put the cfc in my custom tags folder. I want to zip up a complete site for backup purposes. I am calling the cfc from d:\inetpub\wwwroot\back_up_site.cfm The site is at d:\inetpub\wwwroot\demo_site Or if there is a better way please reply. Terry Troxel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237862 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54