Dim MyProcess As New Process Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MyProcess.StartInfo.FileName = "notepad.exe" MyProcess.StartInfo.WorkingDirectory = "c:\temp" MyProcess.StartInfo.Arguments = "Test.txt" MyProcess.Start() MyProcess.WaitForExit() MessageBox.Show("It was time!!!", "Process has now exited") End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click MyProcess.StartInfo.FileName = "c:\temp\test.bat" 'MyProcess.StartInfo.WorkingDirectory = "c:\temp" MyProcess.Start() MyProcess.WaitForExit() MessageBox.Show("It was time!!!", "Process has now exited") End Sub