Learning ColdFusion 8: CFZip Part II - Zipping Files And Directories With CFZipParam

<!---
	Create a zip archive that contains a multiple
	entries. We are going to overwrite any previously
	existing archive of the same name.
--->
<cfzip
	action="zip"
	file="#ExpandPath( './data.zip' )#"
	source="#ExpandPath( './data/images/' )#"
	overwrite="true">
 
	<!---
		Zip the entire directory. Since the CFZip tag defined
		a source attribute, that means the source attribute
		of the CFZipParam tag will relative to it. Since we
		want to zip the entire directory, just leave the
		source attribute empty.
	--->
	<cfzipparam
		source=""
		/>
 
</cfzip>

For Cut-and-Paste