Gzip Compression in VBScript?
-
can anybody give me idea how to use MS GZIP.dll and write code to compress files? Thanks
-
can anybody give me idea how to use MS GZIP.dll and write code to compress files? Thanks
I found this very helpful when coding a project that also needed compression capabilities. It works great, just add a reference the dll file and follow there examples and this should do what you need it to do. http://www.codeplex.com/DotNetZip[^] Here is a quick example: Public Sub createZip() Dim strMsg As String = "Please run the tests before using this feature." Dim file = "results.zip" Try 'Create Zip File Using zip As ZipFile = New ZipFile("results-" & ID & ".zip") zip.AddDirectory(ZipPath, "results") zip.Save() End Using Catch ex1 As Exception MessageBox.Show(ex1.ToString, "Program Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Try End Sub hope this helps Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]