7zip

Starting 7zip from QProcess gives error “cannot find archive”

时间秒杀一切 提交于 2019-12-13 04:47:38
问题 i am working on an application made with Qt5 that downloads a .zip-file to a temporary directory and extracts the .zip-file to a specified directory. I already managed to download the .zip-file and now I'm trying to extract it using 7zip. I use QProcess to start 7Zip. Here the file structure of my Qt-build-kit-thingy: build-ExtractTest-Desktop_Qt_5_3_MSVC2013_64bit-Debug 7za.exe build ExtractTest.exe Here is the code I use for starting the Process: // assemble extraction command QString

How to show extraction progress of 7zip inside cmd?

浪尽此生 提交于 2019-12-12 18:24:07
问题 7z.exe do not show any extraction progress in cmd. "C:\Program Files\7-Zip\7zG.exe" -y x -pPASSWORD "D:\Myfile.rar" Extracts the file with a GUI progress-bar. But I don't want a GUI progress bar. I want to show the progress in terms of percentage inside cmd. i.e, I want to use 7z.exe instead of 7zG.exe with percentage progress shown. 回答1: You can use -bsp1 switch to view the progress 'C:\Program Files\7-Zip\7z.exe' a -bsp1 回答2: Take a look through this page - If it doesn't have any examples

How to partially extract a folder from a 7z file using powershell

会有一股神秘感。 提交于 2019-12-12 18:01:11
问题 I'm trying to automate the install of my platform. I've made a script for compressing the build of the deployables to a 7zip file. Now i need to uncompress partially some folders to a specific destination. Package -app1 --folder11 ---folder111 --folder12 -app2 --folder21 --folder22 ... I need to create a powershell script to extract the content of 'app1' to a destination folder. I've been trying to use the following command but the result is not the as i expected. I've been receiving the full

How to know which rar is first in multi rar archives using SevenZipSharp/Unrar in C#?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 08:55:56
问题 I am trying to use SevenZipSharp or/and Unrar library in C# WinForms .NET 3.5. I have this problem with multi rar archives that have diffrent naming for example: .rar, r01, r02, r03 and so on (this is easy) somefile01.rar, somefile02.rar, somefile03.rar .001, .002, 003 and so on. If i point Unrar or SevenZipSharp to wrong archive it will unpack that particular archive and leave rest unpacked. So i have to point the right one (unless i am doing something wrong). What would be the best way to

Compress separately files within subfolders

穿精又带淫゛_ 提交于 2019-12-12 03:33:51
问题 Hi all and thanks for the answers, Firstly, I tried to find the answer to my problem but I did not find anything. I have a tree of folders and sub-folders and I want to use 7zip to compress the files within those folders separately. I have got this piece of code from this very website, it does what I want to get but it places the compressed files on the main folder: set extension=.* for /R %%a in (*%extension%) do "%sevenzip%" a -mx "%%~na.zip" "%%a" I wonder if I can get a zip file of every

How to use Jedit as the external editor of 7zip

感情迁移 提交于 2019-12-12 02:49:33
问题 I am trying to use Jedit as an external editor to 7zip. 7zip opens Jedit as external editor however edits are only saved back if Jedit was not running previously. I probably should pass -noserver or -newview command line arguments to Jedit as an external editor, but when I do that 7zip gives an error: 'Cannot start editor'. How could I use Jedit as an external editor to 7zip so that edits are saved back? 回答1: You cannot give arguments to the programs you configure in 7-Zip. What you need to

Script to compress contents of a folder once per month into an archive and then delete

梦想的初衷 提交于 2019-12-12 02:07:11
问题 I need a script to backup the contents of a directory including sub folders to a single archive file. I would like to run this script on a monthly schedule (will use task scheduler), so every 30 days the script compress the contents of the folder and create a NEW archive file with the month as the name of the file and then delete the files/subfolders. Ive put together a mixture of coding I found online, this is the product. The code functions as desired, just not sure if the logic is there.

Use 7zip to include files with *current date* only

大憨熊 提交于 2019-12-12 02:04:03
问题 I'm creating then zipping a file that is stamped with the current date with 7-zip. I am able to use the following switch to create the zip file to add to: 7z -tzi C:\RACHAEL\my_work\dbs\MyDb\%DATE:~11,4%\%DATE:~5,2%\MyDb_bak_%DATE:~11,4%-%DATE:~5,2%-%DATE:~8,2%.bak.zip but adding the "-i!" command does not locate the file specfied 7z -tzi C:\RACHAEL\my_work\dbs\MyDb\%DATE:~11,4%\%DATE:~5,2%\MyDb_bak_%DATE:~11,4%-%DATE:~5,2%-%DATE:~8,2%.bak.zip -i!C:\RACHAEL\my_work\dbs\MyDb_bak_<get_current

Why? C# Error after Refactor: 'The stream is invalid or no corresponding signature was found.'

无人久伴 提交于 2019-12-11 18:32:14
问题 This is a follow-on question from here: Decompress Stream to String using SevenZipSharp. The following code works in the sense that it takes a string and successfully compresses and decompresses it. using System; using System.IO; using SevenZip; namespace _7ZipWrapper { public class ProgramOriginal { public static void Main() // This should be broken into separate methods { // Setup Input String var strToCompress = "This String"; // will pass as parameter var memStreamToCompress = new

NSIS - rebuilding the installer exe file

依然范特西╮ 提交于 2019-12-11 17:17:55
问题 Suppose I have created an installation exe using NSIS. The exe is a compressed (7zip maybe) file that contains everything to install the application on a fresh machine, and that comprises big exe files (like .NET runtimes, mysql server installer, etc.). I have to send via the Internet the big exe file to another person. To save time and bandwidth, I'd like to remove the contained big files; I can do that using 7zip to open and extract all the files in the original exe, delete the big ones,