Is there a way to close a program in VB6 with only knowing the file name "AL-Admin.exe"?
I have a way to close by caption but not by file name.
Public Sub CloseProgram(ByVal Caption As String)
Dim Handle As Long
Handle = FindWindow(vbNullString, Caption)
If Handle = 0 Then Exit Sub
SendMessage Handle, WM_CLOSE, 0&, 0&