Hi All,
Process.GetProc essesByName() is not giving the expected results. Here is a
sample code.
Dim TestProcess() As Process
Try
TestProcess= Process.GetProc essesByName("Te st.exe")
If TestProcess.Len gth = 0 Then
MsgBox("Not running", MsgBoxStyle.OKO nly)
Else
MsgBox("Running ", MsgBoxStyle.OKO nly)
End If
Catch ex As Exception
MsgBox("Error!" )
End Try
"Not Running" is displayed, though Test.exe is running.
Would anybody be able to figure out why?
Thanks.
kd
Process.GetProc essesByName() is not giving the expected results. Here is a
sample code.
Dim TestProcess() As Process
Try
TestProcess= Process.GetProc essesByName("Te st.exe")
If TestProcess.Len gth = 0 Then
MsgBox("Not running", MsgBoxStyle.OKO nly)
Else
MsgBox("Running ", MsgBoxStyle.OKO nly)
End If
Catch ex As Exception
MsgBox("Error!" )
End Try
"Not Running" is displayed, though Test.exe is running.
Would anybody be able to figure out why?
Thanks.
kd
Comment