Call Statement

ZMAN2

Registered User.
Local time
Today, 04:49
Joined
May 6, 2003
Messages
37
Looking for a way to open an application, do some stuff :D , and then close this particular app. I can open it, do some stuff :D , but I can't close it. Please advise. Am I just way off or what? :rolleyes:

********************************************************

Sub APPTEST()
Dim anyapp as anyapp.application
Call Shell("C:\Temp\AnyApp.exe """, 1)
anyapp.Quit
End Sub

********************************************************

Thanks in advance. :)
 
Way over my head.....................Does this also work with programs that run in the system tray? The application that I am running is in the systray when launched. Isn't there a command that can find "anyapp.exe" and simply close it.

Something like:

to start app Call Shell ("C:\programs\anyapp.exe")
to close app Exit Shell ("C:\programs\anyapp.exe")

Please excuse my ignorance... :rolleyes: ...I know there is more to this.
 
I'm trying to figure it out

Thanks Tony and Travis. I did view the two links and I am having difficulty determining the lpClassName$ and lpCaption$. I'll keep playing with the code and hopefully it will work, for me anyway. Are programs in the systray just as easy to find the handle? At this point, I was thinking of calling the taskmanager and ending the process that way.
 

Users who are viewing this thread

Back
Top Bottom