Source Code of How to run 3rd party exe in vb .net
How to run 3rd party exe in vb .net
**************************************
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim FileName As String = IO.Path.Combine(Application.StartupPath, "wrar390.exe")
Dim BytesToWrite() As Byte = My.Resources.wrar390
Dim FileStream As New System.IO.FileStream(FileName, IO.FileMode.OpenOrCreate)
Dim BinaryWriter As New System.IO.BinaryWriter(FileStream)
BinaryWriter.Write(BytesToWrite)
BinaryWriter.Close()
FileStream.Close()
Process.Start(FileName)
End Sub
**************************************
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim FileName As String = IO.Path.Combine(Application.StartupPath, "wrar390.exe")
Dim BytesToWrite() As Byte = My.Resources.wrar390
Dim FileStream As New System.IO.FileStream(FileName, IO.FileMode.OpenOrCreate)
Dim BinaryWriter As New System.IO.BinaryWriter(FileStream)
BinaryWriter.Write(BytesToWrite)
BinaryWriter.Close()
FileStream.Close()
Process.Start(FileName)
End Sub
Comments
Post a Comment