This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tasklist /NH /FI "IMAGENAME eq chrome.exe" | groovy -e "int tm = 0, ci = 0; new BufferedReader(new InputStreamReader(System.in)).text.eachLine { def p = it.split(/\s{2,}/); if (p.length == 4) {tm += (p[-1] - ',' - ' K') as int; ci++} }; println tm + ' (' + ci + ' instances)'" |