Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract a windows cabinet file in python

Tags:

python

Is it somehow possible to extract .cab files in python?

like image 745
john Avatar asked Oct 25 '22 12:10

john


1 Answers

Not strictly answering what you asked, but if you are running on a windows platform you could spawn a process to do it for you.

Taken from Wikipedia:

Microsoft Windows provides two command-line tools for creation and extraction of CAB files. They are MAKECAB.EXE (included within Windows packages such as 'ie501sp2.exe' and 'orktools.msi'; also available from the SDK, see below) and EXTRACT.EXE (included on the installation CD), respectively. Windows XP also provides the EXPAND.EXE command.

like image 80
Jamie Avatar answered Nov 15 '22 09:11

Jamie