T
Terry Olsen
Using the following code, I get the error "No process is associated with
this object" when calling the WinZip.WaitForExit() method. After I
click the "Break" or "Continue" button on the dialog, the app exits but
then the command window opens and the process runs on its own. Could
the "WaitForExit" call be happening too soon?
Private Sub ZipDirs(ByVal PCName As String)
Dim WinZip As New System.Diagnostics.Process
Dim args As String = " -Pru -ex " & lblFolder.Text & "\" & PCName &
".zip @""" & appPth & "WksBkup.txt"""
Dim SI As New ProcessStartInfo("c:\Program Files\WinZip\wzzip.exe",
args)
'WinZip.EnableRaisingEvents = True
WinZip.Start(SI)
WinZip.WaitForExit()
End Sub
this object" when calling the WinZip.WaitForExit() method. After I
click the "Break" or "Continue" button on the dialog, the app exits but
then the command window opens and the process runs on its own. Could
the "WaitForExit" call be happening too soon?
Private Sub ZipDirs(ByVal PCName As String)
Dim WinZip As New System.Diagnostics.Process
Dim args As String = " -Pru -ex " & lblFolder.Text & "\" & PCName &
".zip @""" & appPth & "WksBkup.txt"""
Dim SI As New ProcessStartInfo("c:\Program Files\WinZip\wzzip.exe",
args)
'WinZip.EnableRaisingEvents = True
WinZip.Start(SI)
WinZip.WaitForExit()
End Sub