Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to untar / unzip files with coldfusion?

Status
Not open for further replies.

hotcold

Programmer
Dec 7, 2000
14
0
0
FR
I have a .tar file containing several .gz files.
How can I get the original files with coldfusion?
The server is IIS (NT).
Any help would be greatly appreciated.Thanks.


 
Thanks but it's commercial : $49.00 !
I was looking for a free solution...

 
Hi hotcold...

oups it was actually free before... I think... Not sure...

And 49.00$ is not so expensive ;-)

Chris!
 
Ever heard of PkZip ?? the good old command line zip/unzip program for DOS.

CFEXECUTE and pkzip ought to do it for you : )
 
I know pkzip, don't worry ;-)

Actually I wanted to avoid using CFEXECUTE as it would force me to change the Tag Restrictions in the Coldfusion Administrator, and cfexecute sounds like a dangerous tag.
 
Well, I am trying to use your solution but I have difficulties in using cfexecute.

I use this :

<cfexecute name=&quot;e:\mypath\tar-1.12.msdos.exe&quot; arguments=&quot;-xf *.tar&quot; timeOut=&quot;60&quot;>

It works well when I directly run the command under msdos.

With coldfusion, it doesn't return any errors, but it also doesn't run the script. Or it runs it but the result (several files) goes nowhere.

I tried to use a outputfile, it is created but remains empty and anyway i should have several files in output, not only one.

Does anyone knows how to have the command executed with the resulting files in a directory?

Thanks in advance.


 
Did you ever get that to work with pkzip

thanks

khamstra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top