VBNET 查找进程的代码
时间: 2023-04-01 14:01:06 浏览: 151
以下是 VB.NET 查找进程的代码:
Dim processName As String = "notepad.exe"
Dim processes() As Process = Process.GetProcessesByName(processName)
If processes.Length > Then
' 进程已经启动
Dim process As Process = processes()
' 在这里可以对进程进行操作
Else
' 进程未启动
End If
阅读全文