EmersonH.Com

Transforming Knowledge into Power

  • Increase font size
  • Default font size
  • Decrease font size
Home VB.Net 2008 Process Start And Kill process

Start And Kill process

E-mail Print

1. Start notepad
System.Diagnostics.Process.Start("notepad")
2. Start winword
System.Diagnostics.Process.Start("WINWORD")
3. Start excel
System.Diagnostics.Process.Start("Excel")
4. Start ie and parameter
System.Diagnostics.Process.Start("IExplore.exe",
"http://vbnetsample.blogspot.com/")
5. Kill It!!
' Kill all notepad process
Dim pProcess() As Process =
System.Diagnostics.Process.GetProcessesByName("notepad")
For Each p As Process In pProcess
p.Kill()
Next

Last Updated on Monday, 21 December 2009 17:43