I used option b with CF5 - I found it worked without the timeout
setting, but hung with it.

It worked really well - zipped up a 10mb Access db and made it
available for download.

>>> [EMAIL PROTECTED] 18/08/2003 3:35:06 pm >>>
Hi All,

I need to zip a file via mx.

I have tried a number of options - see a, b, c below. Any advice on how
to
get them to work, or an option D would be most welcome.

Thanks,
Phil.

Option a) Downloading the command line extension for winzip, and
calling
directly via cfexecute. I have tried a number of variations...
e.g.

<cfexecute name="c:\program files\winzip\winzip.exe" arguments="-min
-a
c:\temp\zipme.doc c:\temp\newzip.zip" timeout = "10"></cfexecute>
<cfexecute name="c:\program files\winzip\winzip.exe" arguments="-a
c:\temp\zipme.doc c:\temp\newzip.zip" timeout = "10"></cfexecute>
<cfexecute name="c:\program files\winzip\winzip.exe"
arguments="c:\temp\zipme.doc c:\temp\newzip.zip" timeout =
"10"></cfexecute>
<cfexecute name="c:\program files\winzip\wzzip.exe"
arguments="c:\temp\zipme.doc c:\temp\newzip.zip" timeout =
"10"></cfexecute>

None of the above worked, though some create a temporary zip file, but
failed to rename it and the command fails to finish.

==================================

Option b) Calling the command line extensions for winzip via a batch
file

e.g.

temp.bat
c:
cd \
cd program files\winzip
winzip -min -a c:\temp\zipme.doc c:\temp\newzip.zip

Then

<cfexecute name="c:\temp\temp.bat" timeout = "10"></cfexecute>
The bat file executes up until the winzip command, then just hangs and
fails
to complete.

=======================================

Option c) Downloading jcompress_070802.zip from the tag gallery.

I put JCompress.class in c:\cfusionmx\custom tags
but the call to the tag returns "The CFX custom tag "CFX_jcompress" was
not
found in the custom tag database. "

I then tried registering it as a java cfx tag but that didn't help
either.


---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED] 
To unsubscribe send a blank email to
[EMAIL PROTECTED] 

MX Downunder AsiaPac DevCon - http://mxdu.com/

----------------------------------------------------------------------
Maddocks
Melbourne - Tel: (61 3) 9288 0555  Fax: (61 3) 9288 0666   
Sydney - Tel: (61 2) 8223 4100  Fax: (61 2) 9221 0872
Web: http://www.maddocks.com.au 
----------------------------------------------------------------------
The information in this electronic mail is privileged
and confidential, intended only for use of the individual
or entity named.  If you are not the intended recipient,
any dissemination, copying or use of the information is
strictly prohibited.  If you have received this transmission
in error please delete it immediately from your system
and inform us by email on [EMAIL PROTECTED]
----------------------------------------------------------------------


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to