Hopefully someone can point me in the right direction with this situation...
We have a software application that calls a file "Remove.exe" when a user closes Internet Explorer AND when they log off the system (They are not logging off of Windows - just logging off a program.)
I replaced Remove.exe with my own modified file, but I only want the file to execute when someone logs off the system NOT when someone closes Internet Explorer.
Is there a way is some type of batch file or scripting language that I can have the system check if a processes is running? My thought is that when a user logs off there will be at least one less process; so in the batch file I can say somehting like, if this process is running do nothing and if the process is not running do this.
(They are not logging off of Windows - just logging off a program.)
They are not logging off of Windows... this is why I am having this problem. In order to resolve it, I want to overwrite a file that the software calls and have it do what I want, but the file I am replacing gets called when a browser is closed and whey they log off (not Windows, it's an application that runs on top of Windows).
Does that make any sense?
I found a web site that will help me with the batch file, but now I am having a problem figuring out when the program calls the file. I am trying to use Windows/Sys Internal process monitor, but I can't make heads or tails of it.
This software loads that takes up the entire screen and allows for a username and password to be entered. If you enter in a username and password the full screen goes away and allows you to use the computer. It is essentially just a session time program. It will kick the person off after a certain amount of time.
I am not exactly sure how the remove.exe file is called, but all it does is empty Internet Explorer's history. This is why I know I can safely overwrite it. The problem is I want my file to run only when a user is kicked off or logs off the software (again, not Windows).
Let me get this straight - you want to write a script that (among other things) checks whether a process is running? If so, you can do that in ActiveState Perl. Don't know offhand of a way to do it in a batch file, but I'll think about it