<!--- Create a zip archive that contains the entire Data directory. We are going to use the CFZip's source attribute to put us in the images base directory and then each child CFZipParam tag will use a source relative to that. 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 one of the images into the archive root. ---> <cfzipparam source="./funny.jpg" /> <!--- Zip one of the images into the archive root. ---> <cfzipparam source="./mud_monster.jpg" /> <!--- Zip one of the images into the archive root. ---> <cfzipparam source="./red_face.jpg" /> <!--- Zip one of the images into the archive root. ---> <cfzipparam source="./smile.jpg" /> </cfzip> <!--- Now that we have a zip archive that has the images, let's add the contents of the documents folder to the exisitng zip archive root. This time, we have no need to overwrite the existing archive. ---> <cfzip action="zip" file="#ExpandPath( './data.zip' )#" source="#ExpandPath( './data/documents/' )#" />