hackoo

FixHeader.bat

May 22nd, 2021
1,025
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. REM Can I write stuff to the display while keeping other stuff like a header static?
  3. REM https://www.reddit.com/r/Batch/comments/nijcap/can_i_write_stuff_to_the_display_while_keeping/
  4. Title Stuff Change and Fixed
  5. Call :ShowMe
  6. echo            ╔═══════════════════════════════════════╗
  7. echo            ║         Stuff that will change        ║
  8. echo            ╟───────────────────────────────────────╢
  9. echo            ║       Will be put in this area        ║
  10. echo            ╚═══════════════════════════════════════╝
  11. echo.
  12. Call :LittlePause 3
  13. Call :ShowMe
  14. wmic process where commandline!=null get Handle,Name,CommandLine /Value
  15. Call :LittlePause 3
  16. Call :ShowMe
  17. Tracert www.reddit.com
  18. pause
  19. EXIT
  20. ::---------------------------------------------------------------------
  21. :ShowMe
  22. cls
  23. echo.
  24. echo  ╔═══════════════════════════════════════════════════════════╗
  25. echo  ║             --  Stuff I always want shown  --             ║
  26. echo  ╚═══════════════════════════════════════════════════════════╝
  27. echo.
  28. Exit /B
  29. ::---------------------------------------------------------------------
  30. :LittlePause <seconds>
  31. TimeOut /T %1 /NoBreak>nul
  32. Exit /B
  33. ::---------------------------------------------------------------------
RAW Paste Data