Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. @echo off
  2.  
  3. cls
  4.  
  5. :menu
  6.  
  7. echo Systeminfo menu
  8. echo 1 - host name
  9. echo 2 - history
  10. echo 3 - tasklist
  11. echo 4 - exit
  12.  
  13. set /p opt=Please choose from 1-4 and press ENTER.
  14.  
  15. if %opt%==1 goto option1
  16. if %opt%==2 goto option2
  17. if %opt%==3 goto option3
  18. if %opt%==4 goto option4
  19.  
  20. :option1
  21. set /p opt=Type the host name to find and press ENTER.
  22. echo Executing systeminfo and finding %opt%...
  23. systeminfo | find /i "%opt%"
  24. goto menu
  25.  
  26. :option2
  27. echo Executing doskey...
  28. doskey /history
  29. goto menu
  30.  
  31. :option3
  32. set /p opt=Type the task name to find and press ENTER.
  33. echo Executing tasklist...
  34. tasklist | find /i "%opt%"
  35. goto menu
  36.  
  37. :option4
  38. echo Exiting...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement