1) I don't think you need to have the file zip.cfc in the
custom tags folder. Create the folder
myCFCs in d:\inetpub\wwwroot\demo_site.
2) Copy the file
zip.cfc from the custom tags folder to the folder
myCFCs.
3) Save the following code in d:\inetpub\wwwroot\demo_site as
the file
zipper.cfm
<cfscript>
/* Create an instance of a component object */
zip = CreateObject("component", "myCFCs.Zip");
/* Add files to Zip file */
status =
zip.AddFiles(zipFilePath="d:\inetpub\wwwroot\demo_site\demo_site_zipped.zip",
directory="d:\inetpub\wwwroot\demo_site\", recurse="yes");
</cfscript>
4) Run
zipper.cfm
There is a warning. The directory should not contain many
subdirectories and files. If the directory demo_site contains even
a dozen or so directories and subdirectories, several layers deep,
the component may cause your computer to hang. More on that in the
website of the author
(Flash required).