If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

get filetype from string and unzip

Hi Folks,

I'm reading files of a directory into a list and then loop through it. with every loopcount I get one filename, then if it is a xlf file, I insert the data into my db. But if the file is a zip file (always containing serveral xls files), and here is my problem, it has to be unziped first, and then another loop has to get over the unziped files.

So how can I see if my file is a zip file?
And how can I unzip a zip file? (with coldfusion 7)

The only solutions I found were for ColdFusion 9, because there is a unzip function, but I have to work with ColdFusion 7 Server.