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. Instead of storing it in the
		root directory, we are going to store it in a
		new, nested directory at the given prefix stored
		at the given entry path file name.
	--->
	<cfzipparam
		source="#ExpandPath( './data/documents/readme.txt' )#"
		prefix="manuals/_LOOK_HERE_FIRST_"
		entrypath="read_me_text.txt"
		/>
 
</cfzip>

For Cut-and-Paste