Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Apr 02, 2020 2:02 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: how to programatically unzip a downloaded file ?
PostPosted: Wed Feb 27, 2008 5:13 am 
Offline

Joined: Sun Jun 24, 2007 12:24 pm
Posts: 441
Location: Madrid
The problem with the links above (including mine), of course, if that it forces you to go and create a .vbs file in the local machine which, to the eyes of an antivirus is a big NO-NO (especially with VBS files, a favourite for this subject).

It's amazing the functionality exists and can't be called directly. I wonder if using the shell can be used for Linux and Mac but a different method be used in Windows, making a direct call to the windows unzip API unctions.

I haven't tried ZZiputilities (http://developer.chaoticbox.com/documentation/zziputilities/) but they could work as well.

For those that don't mind buying the plugins (I refuse to do so for functionality I'm missing in a single platform which I don't even use) Thomas Tempelmann's Zip Package (which uses Einhugur's e-Crypt-it Engine) is a fantastic piece of work and well worth the cost (Zip Package is somewhat "Donationware", as the cost is open to the user, Einhugur's costs $59 standalone or $99 for the whole pack of plug-ins) if this is critical for your application (I actually find it almost tempting to have Windows users with LESS functionality than Linux and MacOS X, personally).

I'm not sure why Thomas's pages appear under "Old Pages" when there is an update from last week but I won't comment on that ;)

Another option is to bundle the "unzip" executable only for windows, but this sounds overkill and would be picked up by antivirus as "dangerous behaviour" as well.

Hairy_Palms: The quotes note still applies. Unless I misunderstand how RB works, passing the Path just like that to the shell means spaces in the path won't be escaped.

_________________
----
http://eduo.info/
http://gallery.eduo.info/
http://twitter.com/eduo/


Top
 Profile  
Reply with quote  
 Post subject: Re: how to programatically unzip a downloaded file ?
PostPosted: Wed Feb 27, 2008 8:36 am 
Offline

Joined: Thu Jan 26, 2006 8:38 am
Posts: 334
ah yeah your right, should be
dim sh as new shell
dim yourzipfile as folderitem

sh.execute "unzip " + chr(34) + yourzipfile.absolutepath + chr(34)

_________________
Faith is a cop-out. It is intellectual bankruptcy. If the only way you can accept an assertion is by faith, then you are conceding that it can't be taken on its own merits.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group