7zip

Using 7-Zip from Delphi?

I would like to use the 7-Zip DLLs from Delphi but have not been able to find decent documentation or examples. Does anyone know how to use the 7-Zip DLLs from Delphi? ...

7-Zip command-line switch

Is there a 7-Zip command-line switch that prevents the filenames from echoing to the screen as they are added to the archive? ...

7-Zip (7za.dll) .NET wrapper

I'm looking for code or a library that let's me control the 7-Zip unpacking functionality from c# code. ...

How secure is 7-zip?

Has its password protection system ever been broken into? Can it be trusted to hold extremely sensitive information? ...

How do I create 7-Zip archives with .NET?

How can I create 7-Zip archives from my C# console application? I need to be able to extract the archives using the regular, widely available 7-Zip program. Here are my results with the examples provided as answers to this question "Shelling out" to 7z.exe - this is the simplest and most effective approach, and I can confirm that it...

how to get extended error information from 7z commandLine process

inside my C# app I runs a 7z process to extract an archive into it's directory the archive is located in a random-named directory on the %TEMP% directory for example C:\Documents and Settings\User\Local Settings\Temp\vtugoyrc.fd2 (fullPathFilename = "C:\Documents and Settings\User\Local Settings\Temp\vtugoyrc.fd2\xxx.7z") my co...

Ant automation of InstallAnywhere installers - console mode

My problem is to create an ant target for automating our installer running in console mode. The installer is created using InstallAnywhere 2008, which UniversalExtractor recognizes as a 7-zip archive. Once I have the archive unpacked, it appears that the task can use an input file to drive the console (at the very least, it appears th...

Free compression library for C# which supports 7zip (LZMA)

I have a programm (written in C#) which reads/writes it's data direct (direct file access without server) to firebird database files. For a better exchange I want to (un)compress them on import/export for a better exchange over the internet without the need of an external programm to (un)compress them. I know #ziplib which supports Zip,...

How do I write binary data for 7z archive format?

I've been pouring over the format description and source code for the 7z archive format, but I'm still having trouble writing a valid container. I assume I can create an empty container... anyway here's my start: std::ofstream ofs(archivename.c_str(), std::ios::binary|std::ios::trunc); Byte signature[6] = {'7', 'z', 0xBC, 0xAF, 0x27,...

Ant task for modern multithreaded archivators (7zip, winrar etc.)

We are using Ant Zip task, which is a bit of moral obsolete (low processing speed for big files). Can anyone point me out to mature ant task ready for production using that supports multithreaded for compression/decompression? First of all I wish to increase speed of processing archive files. I found 7ZIP Ant task, but it looks a bit ...

Unable to extract SO's data dump file by Mac

I run the following Gert's extract command to the data dump file which format .7z seems to be a problem: extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 ;; *.tar.gz) tar xvzf $1 ;; *.bz2) bunzip2 $1 ;; *.rar) unrar x $1 ;; ...

7z and file flush. Its not compressing my file.

In encryptFile file if i change the if statement to true the code will work as expected. However i get console windows on screen which is ugly. When i make it false FileListName compress as empty archive. Why? using (TextWriter tw = (TextWriter)new StreamWriter( FileListName)) { writeFilename(tw, t, "."); ...

encrypt binary with 7z without filenames?

I am wondering, i like 7z compression but how do i compress data only? i dont want a file in the archive with file info. Just raw data, how can i do this? it would also be nice if i can remove headers too but that isnt necessary. ...

Not able to use 7-Zip to compress stdin and output with stdout?

I get the error "Not implemented". I want to compress a file using 7-Zip via stdin then take the data via stdout and do more conversions with my application. In the man page it shows this example: % echo foo | 7z a dummy -tgzip -si -so > /dev/null I am using Windows and C#. Results: 7-Zip 4.65 Copyright (c) 1999-2009 Igor Pavlov 2...

programmatically extract tar.gz in a single step (on windows with 7zip)

PROBLEM: I would like to be able to extract tar.gz files in a single step. This makes my question almost identical to this one: stackoverflow question for tar-gz. My question is almost the same, but not the same, because I would like to do this on windows using 7zip command-line (or something similar) inside a bat file or ruby/perl/pyt...

7-zip commandline

I'm creating a backup utility that zips all the files listed in a textfile. I am using MS ACCESS as my front-end and 7-zip for compression. Everytime i execute this command. 7zG.exe a c:\BAckup\backup.zip @c:\temp\tmpFileList.txt All the files are compressed without its path. Is there a way to assign the path for each file? so t...

SevenZip, many trailing 0s

My array is 140bytes. outArray is 512bytes... Not what i wanted. Also i dont know if i am encrypting properly. Is the code below correct? how do i fix this so outArray is the real size and not fixed with many trailing zeros? var compress = new SevenZipCompressor(); compress.CompressionLevel = CompressionLevel.Ultra; ...

Creating Batch File to Back Up Specified Folder

I am actually pretty new to this batch file thing. I know it's important to know at least the basic commands. Could somebody help me figure out how to do the following? Zipping a specified folder. Move the folder to another place. When zipping it, the zip file name will be the current date and if there is another zipped file with the ...

C#: Archiving a File into Parts of 100MB

In my application, the user selects a big file (>100 mb) on their drive. I wish for the program to then take the file that was selected and chop it up into archived parts that are 100 mb or less. How can this be done? What libraries and file format should I use? Could you give me some sample code? After the first 100mb archived part is c...

How can you download a file/zip from the DOS commandline using putty?

I'm trying to write a batch script (CMD @ Windows XP Pro) that will automatically download and unzip packages with the help of 7zip and putty/psftp If I have a URL to a package to download http://somesite.org/packages/package.zip how do I download it on command line using putty? Also if you have a better way to do this that would be he...