Sign in to follow this  
Followers 0
AdamBrown

Search for a proccess, if it's running, close it?

4 posts in this topic

Hi,

I am wondering weather I can search for a processes, and if found close it.

The issue i am experiencing is:

Users RDP into a server, the servers Console session has two applications running, Outlook and a web calender Integrator. Currently these applications are set as start up items. When the user logs in via RDP, these apps start automatically, (obviously). If these applications are running twice, it can cause issues with the system. I want to be able to search for the processes, and if they are running, close them. Equally, Is it possible to do the reverse for the console session (if the application is _not_ running, start it?)

Sorry if this is the wrong forum.

Adam

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Global $process = "notepad.exe" ;for example
While 1
    Sleep(500)
    If ProcessExists($process) Then ProcessClose($process)
WEnd

Edited by Vitas

_____________________________________________________________________________

Share this post


Link to post
Share on other sites

Am I able to determine weather I am logged in via RDP?

Share this post


Link to post
Share on other sites

Am I able to determine weather I am logged in via RDP?

To do this, need to know what changes(title, text, or any..) in window after login. Read AutoIt_Help_File, learn to learn:)

_____________________________________________________________________________

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0