Zipping Folders

Share your advanced PureBasic knowledge/code with the community.
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Zipping Folders

Post by collectordave »

Started out trying to create an easy setup.

Needed to pack a whole folder structure and unpack on users machine.

This included empty folders which are a pain you have to make sure they are empty before adding to the zip or it fails.

Finally came up with this.

Download here http://www.mediafire.com/file/i2qfzlmjz ... r.zip/file

The zip file has Zips.pbi the module and ZipFolder.pb a test programme.

The unzip is set to TempTest in documents remember to change this when using.

The program allows you to select a folder to zip and then zips the whole folder including empty folders and sub folders.

The zip file is created with the same name as the selected folder in the same folder.

The unzip portion allows you to select the zip file but not where to unzip easy to add.

Not tested on windows yet. If you try it and it works please let me know.

Regards

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Re: Zipping Folders

Post by LuckyLuke »

It's working fine on windows.

Thanks for sharing !

LuckyLuke
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Zipping Folders

Post by Kwai chang caine »

Thanks for sharing 8)
ImageThe happiness is a road...
Not a destination
Post Reply