Is there a way to find what application are running. I need a vbscript that can compare a string to see if that application is running. I found out how to do it in vb6 but I really need the vbscript since it will be used in conjuction with a bigger vbscript.
the vb6 code is as follows.
Private Declare Function FindWindow Lib "USER32" Alias "FindWindowA" (ByVal lpszClassName As String, ByVal lpszWindow As String) As Long
Private Sub Command1_Click()
If FindWindow(vbNullString, "VISUAL Enterprise - RESEARCH/SYSADM") Then
MsgBox "Yes"
Else
MsgBox "No"
End If
End Sub
any help will be greatly appreciated.
thank you,
jscorpion
the vb6 code is as follows.
Private Declare Function FindWindow Lib "USER32" Alias "FindWindowA" (ByVal lpszClassName As String, ByVal lpszWindow As String) As Long
Private Sub Command1_Click()
If FindWindow(vbNullString, "VISUAL Enterprise - RESEARCH/SYSADM") Then
MsgBox "Yes"
Else
MsgBox "No"
End If
End Sub
any help will be greatly appreciated.
thank you,
jscorpion