Hi all, I am using the shell command to open an .exe file, that works
fine. The problem is I can't find a way of shutting down the .exe from
within Access. I assume an API call would do the trick. Any
suggestions?
Thanks
Dave
You should mess around with your .exe file and see what keystrokes you need to close it down. Then you can return the .exe files application ID by using shell, as follows:
ApplicationID=Shell("Myfile.exe"
You can then switch to your .exe application using:
AppActivate(ApplicationID,1)
Then you will have to use SendKeys to shut it down.
I wish I had a decent example to show you but I've never really used these commands except Shell.
I suggest looking at the help files before messing with your code, just so you are sure what you are doing.
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.