How to make z7 from vb.net
A:
We use SharpZipLib to zip/unzip files and/or folders from .Net. SharpZipLib is released with a GNU General Public License.
Prutswonder
2010-05-20 11:43:17
A:
If you're using 7-zip you'll need to start a new Process to execute 7z.exe and pass in a string of arguments:
Dim objProcess As System.Diagnostics.Process
Try
objProcess = New System.Diagnostics.Process()
objProcess.StartInfo.FileName = "7z.exe"
objProcess.StartInfo.Arguments = "u -tzip classics.zip classics -r"
objProcess.Start()
'Wait until the process passes back an exit code
objProcess.WaitForExit()
'Free resources associated with this process
objProcess.Close()
Catch
MessageBox.Show("Could not start process " & ProcessPath, "Error")
End Try
To work out what the arguments should be, do the zipping from a command line first (I.e. 7z.exe u -tzip classics.zip classics -r).
David Neale
2010-05-20 11:45:17
A:
Take a look at http://dotnetperls.com/7-zip-examples in the question section
Davide
2010-05-20 12:43:27