Dim info As New System.Diagnostics.ProcessStartInfo ' Open the notepad application info.FileName = "c:\windows\notepad.exe" ' Pass a text file name so that notepad will open it info.Arguments = "c:\MyFile.txt" Dim process As New System.Diagnostics.Process process.StartInfo = info ' Start the process (notepad) process.Start() ' Wait until the process started is finished (close notepad) process.WaitForExit() ' Release the resources process.Close()