Hi,
I am actually trying to start a process for winzip and zip a folder. This i am doing using the below code in vb.
Dim startInfo As New System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
Dim tempFileName As String
Try
startInfo = New System.Diagnostics.ProcessStartInfo( _
"c:\Program Files\WinZip\WINZIP32.EXE")
startInfo.Arguments = " -a -r ""c:\test.zip"" c:\test"
startInfo.UseShellExecute = False
startInfo.WindowStyle = Diagnostics.ProcessWindowStyle.Normal
pStart.StartInfo = startInfo
'startInfo.WorkingDirectory = "c:\Program Files\WinZip"
'startInfo.FileName = "WINZIP32.EXE"
pStart.Start()
pStart.WaitForExit()
Catch ex As Exception
Throw
End Try
This works fine when its put in a button click event of a windows application. But when the same is done in a button click event of a web application i can see the process is started in the task manager of the machine. But its does not zip nor does it close the application nor does it pop up its winzip ui.... But in very few machines this does work fine. In most of the machine i am facing the problem and also able to reproduce the problem consistently...
But a similar thing if i try doing using 7z zip, it does work fine form a web application itself...
Please let me know if there is any solution or workaround for this...
Thanks Vinod T.