Check Execution and Close External Application

aleix1979aleix1979 Member Posts: 213
You can call an application with the SHELL command.
:)
How can you check if an application is currently running?
:-k
How can you close an application?
:-k
Navision Developer

Comments

  • fbfb Member Posts: 246
    How can you check if an application is currently running?
    IsMyAppRunning := wshShell.AppActivate('MyApp Title');
    See http://msdn.microsoft.com/library/defau ... tivate.asp

    How can you close an application?
    wshShell.SendKeys('%{F4}');
    See http://msdn.microsoft.com/library/defau ... ndkeys.asp
  • aleix1979aleix1979 Member Posts: 213
    Thank you very much!!!!! :D

    Do you know where I can find the "IWshRuntimeLibrary" library which I guess contains the "IWshShell_Class" Class which I again guess instantiates the wshShell of the example?

    I've checked out MSDN Download but it's not very helpfull.
    [-o<
    Navision Developer
  • aleix1979aleix1979 Member Posts: 213
    Already found it !! \:D/

    If anybody is interested, search for "Windows Script Host Object Model" on the internet. :D

    Sorry to disturb :oops:
    Navision Developer
Sign In or Register to comment.