Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal
- cls
- title Task List
- CD /d "%~dp0"
- :: This will display all task's
- :start
- ECHO.
- set choice=
- set /p choice=Do you want to get all Task's? (y/n)
- if not '%choice%'=='' set choice=%choice:~0,1%
- if '%choice%'=='y' goto _run
- if '%choice%'=='n' goto Skip
- ECHO "%choice%" is not valid, try again
- ECHO.
- goto start
- :_run
- echo.
- echo Getting Running Task's..........
- tasklist/fi "STATUS eq running" > "Task List.txt"
- echo Getting not responding tasks...
- tasklist/fi "STATUS eq not responding" >> "Task List.txt"
- start notepad "Task List.txt"
- echo Complete
- goto end
- :Skip
- goto end
- :end
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement