Guest User

Untitled

a guest
Nov 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. @echo off
  2. tasklist /nh > 1.txt
  3. sort < 1.txt
  4. pause
  5.  
  6. @echo off
  7. tasklist /nh >list.txt
  8. setlocal enableextensions enabledelayedexpansion
  9. ( for /f "skip=2 tokens=1,2,3*" %%a in (list.txt) do (
  10. set "A=%%a
  11. set B=%%d
  12. echo !A:~0,30!!B:~1,15!
  13. ) ) > t2.txt
  14. sort t2.txt > t3.txt
  15. endlocal
  16. start t3.txt
Add Comment
Please, Sign In to add comment