Extracting / unpacking .CAB files?

Just starting out? Need help? Post your questions and find answers here.
StarWarsFan
Enthusiast
Enthusiast
Posts: 169
Joined: Sat Mar 14, 2015 11:53 am

Extracting / unpacking .CAB files?

Post by StarWarsFan »

I have looked through the forum and found nothing working or only bad links:
http://www.purebasic.fr/english/viewtopic.php?t=31577
http://forums.purebasic.com/english/vie ... =13&t=3909

Is there a WORKING and AVAILABLE library with GOOD links that can extract .CAB?

A working link greatly appreciated!
Image - There is usually a lot of "try this, maybe do that" but ONLY an example that one can test for themself and get an immediate result actually brings people forward.
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Extracting / unpacking .CAB files?

Post by Marc56us »

While waiting to find a LIB, it is still possible to use 7-Zip in DLL mode or in command line with RunProgram()

In command line mode, you can use 7z.exe (in hidden window) or 7zG.exe (which then displays a window with progress bar, stop/pause buttons and informations)

7-Zip is free software with open source
https://www.7-zip.org/

:wink:
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4636
Joined: Sun Apr 12, 2009 6:27 am

Re: Extracting / unpacking .CAB files?

Post by RASHAD »

Use your own source & dist. files

Code: Select all

source$ = " d:\VC_RED.cab"
dist$ = " d:\temp"
file$ = "*.*"     ;"*.*" for All files
RunProgram("Expand",source$+" -F:"+file$+dist$,"",#PB_Program_Wait|#PB_Program_Hide)
Egypt my love
Post Reply