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

<!---
	Create a zip archive that contains a single
	file. We are going to overwrite any previously
	existing archive of the same name.
--->
<cfzip
	action="zip"
	file="#ExpandPath( './data.zip' )#"
	overwrite="true">
 
	<!---
		Add a single file. The file will be stored in
		the archive as the root directory but, instead of
		using the existing file name, the file will be
		stored as read_me_first.txt.
	--->
	<cfzipparam
		source="#ExpandPath( './data/documents/readme.txt' )#"
		entrypath="read_me_first.txt"
		/>
 
</cfzip>

For Cut-and-Paste