Skip to main content
Applied syntax highlighting
Source Link
JW0914
  • 8.3k
  • 7
  • 31
  • 50
 

If you wish to filter by process, use findstrfindstr:

while (1) { ps | findstr explorer | sort -desc cpu | select -first 30; sleep -seconds 2; cls }
while (1) { Ps |Findstr explorer | Sort -desc cpu | Select -first 30; Sleep -seconds 2; Cls }

If you wish to filter by process, use findstr

while (1) { ps | findstr explorer | sort -desc cpu | select -first 30; sleep -seconds 2; cls }
 

If you wish to filter by process, use findstr:

while (1) { Ps |Findstr explorer | Sort -desc cpu | Select -first 30; Sleep -seconds 2; Cls }
Source Link

If you wish to filter by process, use findstr

while (1) { ps | findstr explorer | sort -desc cpu | select -first 30; sleep -seconds 2; cls }