I've been trying to automate the shutdown and removal of Easy PHP for a few hours now with no luck. It's like a cockroach. I'd eventually like to run this on a computer that will be locked so I'm trying to only use commands that fall in that category.
- It doesn't react to WinClose() at all.
- I tried nuking it with ProcessClose() and that works but when I try to delete the file directory afterwards Windows is still holding onto something in the folder directory. I have to restart the machine to get Windows to release the directory so it can be deleted (restarting the computer every time is not an optimal solution).
- I've tried running ControlSend() using the "!{f4}" command and I get the issue other people were having where it closes the active window instead of the one I'm sending to. This script will be run on a computer that is locked so I can't use Send() with "!{f4}", correct?
EasyPHP hides out in the system tray while running so I call WinSetState() to bring up in the task bar. Once it's in the task bar, I've just been throwing different functions at it to try and shut it down. I've commented out the ProcessClose() code while I'm trying different solutions.
;ProcessClose("EasyPHP-12.1.exe") ;Msgbox(0, "EasyPHP Terminated", @extended, 2) ;ProcessWaitClose("EasyPHP-12.1.exe")