Thanks Steve - it works under MX so I'll refrain from upgrading for a while.
CFX_ZIP has a cost attached, so while it may be a good option, I'll go with the freeby for now. Phil. ----- Original Message ----- From: "Steve Onnis" <[EMAIL PROTECTED]> To: "CFAussie Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 18, 2003 4:07 PM Subject: [cfaussie] Re: Calling winzip from mx > I tried that code over the weekend under redsky and it didnt work > > threw some java exeptions > > Steve > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Andrew > Muller > Sent: Monday, August 18, 2003 3:55 PM > To: CFAussie Mailing List > Subject: [cfaussie] Re: Calling winzip from mx > > > Why not just do it in Java: > > http://www.cflib.org/udf.cfm?ID=744 > > Phil Evans wrote: > > > 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. > > > > > > > > -- > Andrew Muller > Senior Macromedia Certified Instructor - ColdFusion, Flash > Certified Advanced Macromedia ColdFusion Developer - CF5, CFMX > Certified Macromedia Flash Developer - FL5, FMX > > Daemon Internet Consultants > [EMAIL PROTECTED] > Macromedia Certified Training > http://www.daemon.com.au/go/training > T: 61 2 9380 4162 > F: 61 2 9380 4204 > 17 Roslyn Gardens > Elizabeth Bay NSW 2011 AUSTRALIA > > Daemon: Serious Web Development > > FarCry, the open source CMS for ColdFusion MX > http://farcry.daemon.com.au/ > > > --- > 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/ > > > --- > 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/ > --- 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/
