08-20-2011, 02:43 PM
(This post was last modified: 08-20-2011, 02:44 PM by AceInfinity.)
Rainmeter is nice for a quick display, and this is very simple for a powershell script though. Powershell is far more sophisticated than Rainmeter no doubt, but I wasn't sure what else I could do with processes. I could kill all the top 5 processes if I wanted using this script I created, but you probably don't want to do that lol. I have another I created before this to kill and restart explorer.exe:
One thing about powershell is that you can send in full command outputs as variables to decide what the next command will do with it, you can split functions, and join them too.
Code:
$proc = Get-Process
foreach ($objItm in $proc) {
If ($objItm.ProcessName -eq "explorer") {
kill $objItm.ID
}
}
write-host
write-host Explorer has been successfully restarted! -foregroundcolor "Magenta"
write-host
One thing about powershell is that you can send in full command outputs as variables to decide what the next command will do with it, you can split functions, and join them too.