How TO: Execute Files in .NET
Dim sProc As New Process()
Try
If File.Exists(strPath) Then
sProc.StartInfo.FileName = strPath
sProc.StartInfo.UseShellExecute = True
sProc.Start()
'sProc.WaitForExit()
End If
Catch exFNF As FileNotFoundException
MessageBox.Show("The file: '" & strPath & "' could not be found!", "File not found!")
Catch ex As Exception
MessageBox.Show(ex.Message, "Exception")
Finally
sProc.Dispose()
End Try
Last Updated:Thursday, September 02, 2010By:alfero#
with your OpenID.
If you do not know what OpenID is,