7zip

API's to extract 7z files in .net

Is there any API available, that can be used in .net that can read/extract 7z files ? ...

Where is 7-Zip's compression source code?

I need the source code for the compression used in 7-Zip. Does anyone have a link? ...

how to import/export dll and use its function

I am developing a project. I want to include a particular function from 7zip software to decompress data. Its a kinda exporting a particular function from 7zip software to my project. Should I do using DLL import and export or is there any other way? ...

How do I get the 7-Zip exit code from the console output?

I am writing a c# application that uses 7-zip to compress a directory. 7-Zip returns an exit status after zipping up a file. In the console window all I see is Everything is Ok which equates to an exit code of 0. But does anybody know if there is a way I can get that number? ...

JPG+Zip File Combination Problem with Zip Format

Hopefully you've heard of the neat hack that lets you combine a JPG and a Zip file into a single file and it's a valid (or at least readable) file for both formats. Well, I realized that since JPG lets arbitrary stuff at the end, and ZIP at the beginning, you could stick one more format in there - in the middle. For the purposes of thi...

Invoke-Expression with exe in Program Files

I'm trying to run a Powershell command to call 7-Zip to zip up a folder using the following command: $command = $SevenZip + " a " + $targetDirForZip + $GetDateName + "_" + $dir.Name + ".7z " + $dir.FullName Invoke-Expression $command The variables being fed into $command are already set and $SevenZip is "c:\Program Files\7-Zip\7z.exe"...

7-Zip Problem for windows mobile

Hi, i am trying to build the 7zip code, which i can use in my windows mobile project.. does any one know how to build 7zip code and use the same in windows mobile application.. ...

7zip, batch file, file splitting, amazon s3

Hi, I try to to use the following batch command to start for each of the files in a the given folder 7zip and split the files into 250 MB pieces. The files should not be zipped (-mx0) because I want have low disk i/o and just want to synchronize them with amazon s3. for /f %%f in ('dir /b c:\Test\') do START 7z.exe a %%f.zip -wc:\Test...

Why do I get an "abstract error" when calling TJclCompressArchive.Compress?

I have the following code that always fails with an "Abstract Error": arch := TJclCompressArchive.Create(GetDesktop + 'Support.7z'); try with arch do begin if FindFirst('*.log', faAnyFile, sr) = 0 then begin repeat AddFile(ExtractFileName(sr.Name),sr.Name); until FindNext(sr) <> 0; ...

How to avoid thumbs.db files in compression

Is there a 7zip or winzip command to use so that the compression avoids thumbs.db files? ...

What's the correct email attachment MIME type for a zipped and password protected file?

It's zipped and password protected with 7zip, should the mimetype be "application/7zip", or just "data/binary"? Something else? ...

Using 7-zip via system() in c++

I'm trying to use 7-Zip to zip up a file via the system() function in C++ on a windows XP machine. I tried: (formatted to be what system() would have received) "C:\Program Files\7-Zip\7z.exe" a -tzip "bleh.zip" "addedFile.txt" which spat the error 'C:\Program' is not recognized as an internal or external command, operable program or ...

Using LZMA SDK in C++

I am trying to use LZMA SDK to compress a file in my program. I have download the SDK but I don't know how to use it. Can anyone tell me what steps I need to take to make this work? Any help would be highly appreciated I am almost a newbie to C and C++ world ...

Why does 7zip Ignore my InstallPath when making a SFX installer?

Currently, I am making a SFX with 7zip using the following config: ;!@Install@!UTF-8! InstallPath="C:\\test" GUIMode="2" RunProgram="7z465.exe" ;!@InstallEnd@! I then package 7z465.exe into Setup.7z, and then call the following line in a batch file: copy /b "C:\Program Files\7-Zip\7zSD.sfx" + config.txt + ".\Release\Setup.7z" .\Relea...

Listing the contents of a LZMA compressed file?

Is it possible to list the contents of a LZMA file (.7zip) without uncompressing the whole file? Also, can I extract a single file from the LZMA file? My problem: I have a 30GB .7z file that uncompresses to >5TB. I would like to manipulate the original .7z file without needing to do a full uncompress. ...

How do I use the 7-zip LZMA SDK 9.x to self-extract?

I am writing a SFX for an installer. I have a number of good reasons for doing this, primarily: The installer is actually a large Python program which uses plugins. Using py2exe or pyinstaller makes doing plugins annoyingly complicated. I want to be able to pass command-line options directly to the Python installer script, as if it ...

7zip timestamp archive under context menu

Does anyone know how I can add a context menu item that would compress a folder and add a timestamp? So that I can right-click a folder and it would give me the option to create something like this: folder_20100528.zip (I'm posting it here because I figure it's something that's done through a batch file/code) ...

Ruby / rubyzip alternative capable of handling rar/tar/zip/7z?

I was wondering if anyone knows of rubyzip alternatives for Ruby, that can handle various formats in particular zip / rar / 7z? I know of libarchive, but it's not complete for my purposes ( it's a good gem thou). (To clarify, libarchive - won't work for me - cause I need to be able to run in on Windows. ( Yeah I know sucks to be me)) ...

7z archive from lower directory upwards reading from file

Hi, I'm trying to archive a list of files from multiple directories while preserving the folder locations. The list of files are contained within test.lst. Scenario: my current working directory:C:\A\B\C\ test.lst located in C:\A\B\C\test.lst test.lst contains the following list of files to be archived: C:\A\B\C\hello.txt C:\A\B\...

Iterating through folders and files in batch file?

Here's my situation. A project has as objective to migrate some attachments to another system. These attachments will be located to a parent folder, let's say "Folder 0" (see this question's diagram for better understanding), and they will be zipped/compressed. I want my batch script to be called like so: BatchScript.bat "c:\temp\usd\...