How do I close an outside application(an exe)that I've previously opened with a shell command? I thought it would be quit "c:\xxx.exe", but that no worky.
messy way of doing it would be using the send keys function. or what is the app ? if it is amother MS app then open it with the create object command and you can close it in code /?
You could use the FindWindow and SendMessage API calls
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.