منبع:https://barnamenevis.org/showpo...4&postcount=17
Imports System.Diagnostics
For Each p As Process In Process.GetProcesses()
If p.ProcessName.ToLower() = "notepad" Then
p.Kill()
End If
Next
و یا :
کد:
System.Diagnostics.Process.Start("TaskKill", "/f /im Notepad.exe /t")





