?
Solved

ColdFusion UnZip

Posted on 2003-03-06
6
Medium Priority
?
339 Views
Last Modified: 2013-12-24
What is a good utility to use as a com object for zipping or unzipping files with ColdFusion?
0
Comment
Question by:shfog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 17

Expert Comment

by:anandkp
ID: 8081955
heard abt XCEEDZIP

its a DLL - install it & call it as a object from ur cfm code ...

let me know - if ur insterested doing this - so i can explain a bit more

K'Rgds
Anand
0
 

Author Comment

by:shfog
ID: 8082249
I am interested.
At this point I use WinZip called from a command line in VB 6.0.   I would like to move this process to the web page a files are uploaded.  I know that ColdFusion should be able to do this, but I can't find a way with WinZip, so far.
0
 
LVL 10

Expert Comment

by:substand
ID: 8082417
you can use

<CFEXECUTE
    NAME=" ApplicationName "
    ARGUMENTS="CommandLine Arguments"
    OUTPUTFILE="Output file name"
    TIMEOUT="Timeout interval in seconds">
    ...
</CFEXECUTE>

to use your winzip called from the command line

0
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 
LVL 17

Accepted Solution

by:
anandkp earned 400 total points
ID: 8085914
hi ok - u'll need to download the XceedZip.dll from internet & then use this code in ur application - to zip/unzip files/folders

PS : the files zipped using this DLL can be unzipped using the winzip tool as well ... so dont worry abt that !

<!---
For Zipping :
               ZipFolder          =      Source path               [ mandatory ]
               ZipName               =      File Name               [ mandatory ]

For UnZipping :
               UnZipFolder          =      Destination path     [ mandatory ]
               ZipName               =      File Name               [ mandatory ]
 --->

<CFOBJECT TYPE="COM" NAME="XZip" CLASS="XceedSoftware.XceedZip" ACTION="CREATE">

<!--- =============== TO ZIP ================================================= --->
<CFIF ISDEFINED("ZipFolder") AND ISDEFINED("ZipName")>
     <CFSET XZIP.ADDFILESTOPROCESS("#ZipFolder#*")>
     <CFSET XZIP.ZIPFILENAME = "#ZipName#">
     <CFSET XZIP.PROCESSSUBFOLDERS = "True">
     <CFSET X = XZIP.ZIP()>

<!--- ============== TO UNZIP =============================================== --->    
<CFELSEIF ISDEFINED("UnZipFolder") AND ISDEFINED("ZipName")>

     <CFSET XZIP.UNZIPTOFOLDER = "#UnZipFolder#">
     <CFSET XZIP.ZIPFILENAME = "#ZipName#">
     <CFSET X = XZIP.UNZIP()>

</CFIF>

K'Rgds
Anand
0
 

Author Comment

by:shfog
ID: 8088044
Thank you very much
0
 

Expert Comment

by:Michael_O
ID: 12257439
Hi,

I want to output extracted files to a query. I need to include File name, path, size, and extension.

Please help.
0

Featured Post

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question