NCC10281982B Report post Posted July 8, 2015 At work we have a computer that is used to varify orders. Each time an others barcode is scanned a new instance of Firefox is opened displaying the order. Thus it is common to have many many Brower windows open. In the interest of house keeping I am trying to create a patch bile to close all instances of ff. I have the TSKILL part down but need a loop in the script. Thoughts? Share this post Link to post Share on other sites
Waco Report post Posted July 9, 2015 On anything other than Windows this is a one liner. Loops are possible in Windows shell scripts but hell if I know how to do them and query the process list... Share this post Link to post Share on other sites
IVIYTH0S Report post Posted July 9, 2015 Can't you just open task manager and end the task? Share this post Link to post Share on other sites
bishop245 Report post Posted July 9, 2015 Can't you just open task manager and end the task? Sounds easiest Share this post Link to post Share on other sites
NCC10281982B Report post Posted July 11, 2015 No gentlmen the task manager is not what I want to use. Share this post Link to post Share on other sites
IVIYTH0S Report post Posted July 12, 2015 Ctrl-Esc and the Del on firefox process is really that hard? Share this post Link to post Share on other sites
Waco Report post Posted July 12, 2015 http://stackoverflow.com/questions/2591758/batch-script-loop And if you can query the process list, you can just loop until you've killed them all. Share this post Link to post Share on other sites
El_Capitan Report post Posted July 12, 2015 It's pretty easy, I'll give details later tonight, or tomorrow morning. Share this post Link to post Share on other sites
El_Capitan Report post Posted July 13, 2015 Create a batch script, and just put this in there: :loop tasklist /fi "imagename eq firefox.exe" | find "firefox.exe" >nul && ( taskkill /im firefox.exe >nul & goto loop ) Share this post Link to post Share on other sites