Start process by setting file name : Process « Development « VB.Net Tutorial






Public Class Tester
    Public Shared Sub Main
    
        Dim proc As System.Diagnostics.Process
        proc = New System.Diagnostics.Process()
        proc.StartInfo.FileName = "c:\\text.txt"
        proc.Start()
    End Sub

End Class
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified

   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Tester.Main()








7.24.Process
7.24.1.Start process by setting file name
7.24.2.Get current Process
7.24.3.Display properties of current Process
7.24.4.Start main module in current process
7.24.5.Kill current process
7.24.6.Get thread count in current process
7.24.7.Get Process by ID
7.24.8.Print properties of Process
7.24.9.Open Default editor for text file
7.24.10.Start a processStart a process
7.24.11.List all process in a ListViewList all process in a ListView