I wrote the following code to try to use VB.NET to zip a file using winzip's command line add-in. It seems to be opening a command window and running the wzzip.exe file, but it closes before the zip file is created. Does anyone have any suggestions as to how i can have it finish creating the file?
Thanks in advance,
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim dump As Object
Dim MyString As String
MyString = MyString & "wzzip -rp y:\AMCC\test76.zip y:\AMCC\*.txt"
FileOpen(1, "C:\DOSText.txt", OpenMode.Output)
Print(1, MyString)
FileClose(1)
Dim sCmdLine As String
sCmdLine = "C:\Program Files\winzip\wzzip.exe " & "C:\DOSText.txt"
Call Shell(sCmdLine, AppWinStyle.NormalFocus, True, -1)