graydwarf Posted January 1, 2012 Share Posted January 1, 2012 Passing in iexplore.exe to this script will close all instances of iexplore.If $CmdLine[0] = 0 Or $CmdLine[0] > 1 Then Exit (-1) ; This script requires exactly 1 argument ProcessClose($CmdLine[1]) Exit @errorBased on the documentation which reads:"If multiple processes have the same name, the one with the highest PID is terminated--regardless of how recently the process was spawned."My expectation given that comment is that only one process will exit and it's the one with the highest PID.What am I missing? Link to comment Share on other sites More sharing options...
jvanegmond Posted January 1, 2012 Share Posted January 1, 2012 The iexplore.exe process closes its child processes when it exists. iexplore.exe <-- Kill this, it kills the rest - iexplore.exe - iexplore.exe - iexplore.exe graydwarf 1 github.com/jvanegmond Link to comment Share on other sites More sharing options...
MilesAhead Posted January 1, 2012 Share Posted January 1, 2012 Same thing with chrome.exe. You just have to kill one to close 'em all. My Freeware Page Link to comment Share on other sites More sharing options...
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