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/

Reply via email to