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

<!---
	Create a zip archive that contains a single
	entry. This entry will be created from text
	data, not from a file on the server. 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 entry using the given text
		data into the given entry path.
	--->
	<cfzipparam
		entrypath="text_entry.txt"
		content="This is my text entry!"
		/>
 
</cfzip>

For Cut-and-Paste