I would like to write a piece of code that will check if a program is running and if it isn't then a MsgBox
will appear. I have done this before with a specific file using the code below:
If (Not System.IO.Directory.Exists("\\twa-file2\staffhomes\" + TextBox1.Text)) Then
MsgBox("Home Area Not Found", MsgBoxStyle.Information, "Error")
End If
Would someone be able to tell me how to do this for a program?