Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- tasklist /nh > 1.txt
- sort < 1.txt
- pause
- @echo off
- tasklist /nh >list.txt
- setlocal enableextensions enabledelayedexpansion
- ( for /f "skip=2 tokens=1,2,3*" %%a in (list.txt) do (
- set "A=%%a
- set B=%%d
- echo !A:~0,30!!B:~1,15!
- ) ) > t2.txt
- sort t2.txt > t3.txt
- endlocal
- start t3.txt
Add Comment
Please, Sign In to add comment