7zip

7z extension for php?

浪子不回头ぞ 提交于 2019-12-09 02:30:03
问题 I can't find one and I don't know if any of PHP Compression and Archive Extensions will work. Do you think I could use a compression stream to read data from a 7z file? UPDATE 7z forums have a lot of requests for a php extension 回答1: The 7z file format can use various compression algorithms, so you might be able to decompress the archive with one of the existing utilities for bzip2 or deflate. I found a 7z PHP class as well, and you are lucky since it's still being developed. Here is the

Ho to setup and use the LZMA compression algorithm SDK

回眸只為那壹抹淺笑 提交于 2019-12-08 11:45:32
问题 Making some research on the net, I found that one of the most recent, optimized and high-performance algorithms for data compression, especially in term of compression ratio and decompression time is the LZMA Algorithm. It's supported in many popular software like WinRAR, WinZip, and 7-Zip (By default). I have found the LZMA SDK here http://www.7-zip.org/sdk.html But i haven't found a way to install it in windows or to use the source code provided (examples). For example : In DOC ==> 7cC.txt

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

情到浓时终转凉″ 提交于 2019-12-08 08:21:23
问题 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 batch file. I've tried several similar alternatives but have not yet found a solution. I want to try to run it straight from its install directory so that as long

How would I compress a folder with 7Zip in C#?

谁说我不能喝 提交于 2019-12-08 02:27:51
问题 I want to compress a folder into a file with the .7z extension, with 7zip. I would like to know how I would do this, because I'm not sure (which is why I'd asking.) This is in C#. Links to pages or sample code would be helpful. 回答1: code to zip or unzip file using 7zip this code is used to zip a folder public void CreateZipFolder(string sourceName, string targetName) { // this code use for zip a folder sourceName = @"d:\Data Files"; // folder to be zip targetName = @"d:\Data Files.zip"; //

7zip SFX Batch For SendTo Folder

爱⌒轻易说出口 提交于 2019-12-07 18:45:08
问题 7z a -mx9 -sfx %1.exe %1 This is what i have so far as a batch file, which if i drag and drop a file or folder onto the batch file i get a 7zip SFX on Ultra Compression under the same name as the original file. but this only works if the file is in the same folder as the batch file. What im trying to achieve is, putting this batch file into the sendto folder so i can convert any file anywhere into a highly compressed exe, which appear in the folder of the original directory. Any help would be

Why sfx sevenzipsharp '7-zip : unsupported method' when extract?

送分小仙女□ 提交于 2019-12-07 16:59:36
问题 I have created hallo.7z and used 7zxSD_LZMA.sfx as module. I think my configuration is right but while extracting sfx I receive 7-zip : unsupported method void CreateExeFile() { try { SfxModule mdl = SfxModule.Extended; SevenZipSfx sfx = new SevenZipSfx(mdl); sfx.ModuleFileName = @"7zxSD_LZMA.sfx"; sfx.MakeSfx("D:\\hallo.7z", new Dictionary<string, string> { { "Title", "Extract Files" }, { "InstallPath", ProgramFilesx86() + "\\ATIG Platform" }, { "BeginPrompt", "Choose directory }, {

Windows Azure virtual machine is slow to access network when scaling

倾然丶 夕夏残阳落幕 提交于 2019-12-07 16:02:09
问题 I'm running some startup scripts (cmd/bat) on my small azure VM which include a file-transfer operation from a mounted VHD, and normally it finishes in about 3 minutes (copying files and extracting ~500Mb zip file with command-line 7z). When I scale out to ~150 instances, the same operation is very slow (up to 15 minutes in total, most of which is used by 7z). Also, the nodes which are the slowest to complete the bootup procedure are very hard to access at first using mstsc(animation is

Unzipping and zipping a working .xpi makes it stop working

…衆ロ難τιáo~ 提交于 2019-12-07 11:39:19
I downloaded the basic Hello World xpi from Mozilla, and it installed in my Firefox without any problems. Then I unistalled the addon, unzipped the xpi, then, without changing anything inside it, zipped it again using 7zip. I tried to install it, and Firefox gave me a "This addon could not be installed because it appears to be corrupt" error. blacktrance Unzipping the .xpi produces a folder with the same name as the .xpi, with its contents. To create a working .xpi, zip the contents of that folder, not the folder itself. Credit goes to nmaier . 来源: https://stackoverflow.com/questions/18925012

How to include files and folders with 7zip powershell

天涯浪子 提交于 2019-12-07 03:13:16
问题 Im trying to make my powershell script zip up a few files and folders. At the moment I can make my script either zip all files (with no folders included), or zip all files with folders included but to the wrong path. An example would be if I have a folder named wordpress with files and a few subfolders. I need my zip file to be wordpress.zip, with all files and subfolders being in the root of that zip as opposed to \wordpress\files.* Any help would be appreciated. Here is my code so far

How pip install pylzma on windows 7 x64 , python 2.7

北慕城南 提交于 2019-12-06 14:14:21
I assumed this should be working out of the box, but ... i've pasted pip.log on pastbin the last few lines of error message is e:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DWITH_COMPAT=1 -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\Python27\include -IC:\Python27\PC /Tcsrc\7zip\C\AesOpt.c /Fobuild\temp.win-amd64-2.7\Release\src\7zip\C\AesOpt.obj /MT cl : Command line warning D9025 : overriding '/MD' with '/MT' AesOpt.c src\7zip\C\AesOpt.c(14) : fatal error C1083: Cannot open include file: 'wmmintrin.h': No such file or directory error: