AdamBrown Posted July 28, 2009 Posted July 28, 2009 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
GodlessSinner Posted July 28, 2009 Posted July 28, 2009 (edited) Global $process = "notepad.exe" ;for example While 1 Sleep(500) If ProcessExists($process) Then ProcessClose($process) WEnd Edited July 28, 2009 by Vitas _____________________________________________________________________________
AdamBrown Posted July 29, 2009 Author Posted July 29, 2009 Am I able to determine weather I am logged in via RDP?
GodlessSinner Posted July 29, 2009 Posted July 29, 2009 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:) _____________________________________________________________________________
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now