Broek, ir. M.A. van den wrote:
> Hello, 
> 
> I would like to zip a few files with cfexecute and then redirect to this zip
> file (see code below). The ColdFusion server has two wait a few seconds
> before the <cflocation> is executed, because it takes some time to zip the
> files. How can I accomplish that?

Give your cfexecute a timeout. CF will then wait for the zip process to 
complete before executing the cflocation.

<cflock timeout="15" throwontimeout="Yes" name="zipper" type="EXCLUSIVE">
   <cfexecute name = "D:\Progra~1\WinZip\wzzip.exe"
     arguments = "E:\ArcIMS\Output\#ID#.zip #LocationDir#\#ID#.*" 
timeout="15">
   </cfexecute>
</cflock>

<cflocation url="http://#Session.ServerName#/Output/#ID#.zip";>

Jochem




______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to