FAQ Database Discussion Community


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

qt,path,7zip,qprocess
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...

Add all Subfolders of a root folder and their contents to an existing Zip file

batch-file,zip,7zip
I have a directory structure similar to the following: ROOT --> Site_01 --> 2015 --> 01 --> more subfolders and files (thousands of log files) --> Site_02 --> 2015 --> 01 --> more subfolders and files (thousands of log files) --> Site_03 --> 2015 --> 01 --> more subfolders and...

SendTo / Batch / 7zip

windows,batch-file,7zip,sendto
I am trying to create a SendTo shortcut to a batch script that will take the selected files (in this case, jpg's), zip them with 7zip and name them the folder name (that the selected files are in) and place them in the same folder. The directory names have spaces...

Powershell - Using 7zip with Parameters

powershell,7zip
I'm using Powershell(V4) and I'm following the code give here,however, it gives me an error when I run the code. My Code: [string]$zipPath="C:\Users\someUser\7z.exe" [string]$parameters= 'a', '-tzip','C:\Users\someUser\Desktop\Archive.zip','C:\Users\someUser\Desktop\Test' Powershell View: PS C:\Users\someUser> $zipPath="C:\Users\someUser\7z.exe" $parameters= 'a', '-tzip','C:\Users\someUser\Desktop\Archive.zip','C:\Users\someUser\Desktop\Test' & $zipPath $parameters & $zipPath $parameters Output: 7-Zip (A) 9.20 Copyright (c)...

Batch script to archive subfolder contents using 7zip with FOR /R

batch-file,batch-processing,7zip
I have a folder structure like this: C:\\\Logs\logs1\tracelogXXXX.log C:\\\Logs\logs2\tracelogXXXX.log C:\\\Logs\logs3\tracelogXXXX.log Each folder has a bunch of tracelogXXXX's, and I've got the pseudocode for a script that loops through each folder, archives each log into its own .zip, and then delete the tracelog left outside the archive (because 7zip doesnt have...

Unable to download the .7z extension file through application

c#,asp.net-mvc,iis-8,7zip
Am trying to download the .7z file using our website application.But it shows the below error. HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded,...

7zip recursively archive files in folders

windows,batch-file,command-line,cmd,7zip
I need to archive all files but not folders that are inside a complex directory structure in a special way. Every subfolder (no matter how deep in the structure) will contain a zip file containing all files that used to be there. If I use 7zip a -r -tzip files.zip...

Zip multiple files using 7zip.exe in C#

c#-4.0,process,7zip
I have to zip multiple files together using 7zip.exe. I have paths of two files say file1 and file2. I append the two paths using the following. string filetozip = file1+ "\"" + file2+" "; and do the below Process proc = new Process(); proc.StartInfo.FileName = @"C:\Freedom\7-Zip\7z.exe"; proc.StartInfo.UseShellExecute = false;...

Run 7z on a remote machine over ssh

linux,ssh,7zip
I have two debian machines and I want to do a 7z decompression directly on a remote machine connected over ssh. I connected to the remote machine and tried to run the command 7z x -so myfile.7z This returned an error saying command not found. However, I am certain 7z...

7zip files in all folders (Multiple archives )

file,batch-file,archive,folders,7zip
Does anyone know how to make 7zip recursively archive all files in a folder for all parent folders. Currently i have this: for /d %%X in (C:\Users\mikejoh\Desktop\Modst\Ziptest\*) do "c:\Program Files\7-Zip\7z.exe" a "%%X\*.7z" "%%X\win\*" But that only takes the Parent folders and zips them in the same location... i believe i...

How does 7zip Earns when if No Ads or In-app Purchase

7zip
I know this question may be off-topic but I just want to know that how does 7-zip earns even if it dont had any In App Purchases or any ads on thier site or if the user has to buy the product. Why does the 7-zip sells everybody the product...

Loading an assembly from a dll's Byte array

powershell,dll,.net-assembly,7zip
I am trying to load an assembly using this: $pathToDll = "C:\zip\SevenZipSharp.dll" $pathTo7zDll = "C:\zip\7z.dll" $dllByteArray= [System.IO.File]::ReadAllBytes($pathToDll) [System.Reflection.Assembly]::Load($dllByteArray) This doesn't throw an exception however when I want to use the library SevenZip.SevenZipExtractor like this: [SevenZip.SevenZipExtractor]::SetLibraryPath($pathTo7zDll) It says: Exception calling "SetLibraryPath" with "1" argument(s): "The type initializer for 'SevenZip.SevenZipLibraryManager' threw an...

Automated zip process sometimes skips files

c#,zip,7zip
Part of my application exports data in a series of CSV files, adds a cover note and then packs all this data into a password protected zip file, ready for dispatch. Here's the relevant code that does the zipping. private bool ZipFiles(string zipfile, string filename, string password) { string arguments...