Download Zip and extract files with progressbar

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Download Zip and extract files with progressbar

Post by jmburnod » Thu Nov 29, 2012 11:41 am

Hi All,
Maybe the stack in attachment is useful for someone.
I tested it OSX only. Does somebody can test it on PC and Linux ?

It does:
• Download a zip file "images50.zip" (50 images.png, 1.4 Mo) in the documents folder
• Answer dialog to confirm extraction
• Create a destination folder "images50" in the documents folder
• Extract the files from the zip to the destination folder
• Delete zip file "images50.zip"
• A button "Delete folder images50" delete this folder after an answer dialog

Thanks again at all for help
Jean-Marc
Attachments
DownloadZipExtractOSX.livecode.zip
(12.41 KiB) Downloaded 378 times
https://alternatic.ch

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Download Zip and extract files with progressbar

Post by Simon » Sat Dec 01, 2012 7:29 pm

Hi Jean-Marc,
I tested the stack on my Windows 7 machine, results:
• Download a zip file "images50.zip" (50 images.png, 1.4 Mo) in the documents folder
Yes
• Answer dialog to confirm extraction
Yes
• Create a destination folder "images50" in the documents folder
Yes
• Extract the files from the zip to the destination folder
Yes
• Delete zip file "images50.zip"
Yes
• A button "Delete folder images50" delete this folder after an answer dialog
Deleted contents of folder but not the folder

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Download Zip and extract files with progressbar

Post by jmburnod » Sat Dec 01, 2012 11:22 pm

Hi Simon,
Tank for your reply.
The result is better than i tought, all step work except the last.
Best regards
Jean-Marc
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Download Zip and extract files with progressbar

Post by jmburnod » Mon Dec 03, 2012 7:47 pm

Hi All,
This new version work on windows and OSX.
The folder is deleted
Best
Jean-Marc
Attachments
DownloadZipExtract001.livecode.zip
(9.79 KiB) Downloaded 446 times
https://alternatic.ch

Post Reply