Advertisement
Guest User

Drams Advanced Pinger v1.1

a guest
Dec 15th, 2020
2,349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. @echo off
  2. color 0c
  3. title ! Drams Advanced Pinger !(Subscribe to me)
  4.  
  5. echo Would you like to subscribe to my youtube channel? (yes, no)
  6. echo.
  7. set /p ans=
  8. IF "%ans%"=="yes" (start chrome.exe www.youtube.com/channel/UCVtmWA0dmsD59l9JqPFPtpQ?sub_confirmation=1
  9. goto welcome) ELSE (goto welcome)
  10.  
  11. :welcome
  12. title ! Drams Advanced Pinger ! (Home screen)
  13. set /a ecount=0
  14. set /a iviewed=0
  15. cls
  16. echo Welcome to the Drams Advanced IP Pinger, enter the IP address you would like to ping, or enter color if you want to change the color.
  17. echo.
  18. set /p ip=Enter IP:
  19.  
  20. if %ip%==color (goto color) ELSE (goto psetup)
  21.  
  22. :error
  23. cls
  24. title title ! Drams Advanced Pinger ! (ERROR! RETURN TO HOME SCREEN)
  25. echo Error!
  26. echo.
  27. pause
  28. goto welcome
  29.  
  30. :color
  31. cls
  32. title ! Drams Advanced Pinger ! (Set your preffered color)
  33. echo Enter color. If you don't know the color commands, type "color help"
  34. echo.
  35. set /p clr=Color:
  36.  
  37. if "%clr%"=="color help" (goto colorhelp) ELSE (color %clr%
  38. goto welcome)
  39.  
  40. :colorhelp
  41. cls
  42. title ! Drams Advanced Pinger ! (Helping you out with colors.)
  43. echo Color commands are simple, the first digit of the color will be used as the background such as "0#" for a black background.
  44. echo The second digit will be the text color, such as 0a for a black background and green text. Here are the colors:
  45. echo.
  46. echo 0 = Black
  47. echo 8 = Gray
  48.  
  49. echo 1 = Blue
  50. echo 9 = Light Blue
  51.  
  52. echo 2 = Green
  53. echo A = Light Green
  54.  
  55. echo 3 = Aqua
  56. echo B = Light Aqua
  57.  
  58. echo 4 = Red
  59. echo C = Light Red
  60.  
  61. echo 5 = Purple
  62. echo D = Light Purple
  63.  
  64. echo 6 = Yellow
  65. echo E = Light Yellow
  66.  
  67. echo 7 = White
  68. echo F = Bright White
  69. echo.
  70. echo Press anywhere to go back.
  71. pause>nul
  72. goto color
  73.  
  74. :psetup
  75. cls
  76. title ! Drams Advanced Pinger ! (Preparing to ping "%ip%")
  77. echo Host: "%ip%"
  78. echo.
  79. set /p pa=Amount of pings:
  80. set /a pamount=%pa%
  81. echo.
  82. cls
  83. echo Host: "%ip%"
  84. echo.
  85. echo Amount of pings:%pa%
  86. pause>nul
  87.  
  88. cls
  89. goto ping
  90.  
  91. goto error
  92.  
  93. :ping
  94. set /a pad=%pamount%-1
  95. color %clr%
  96. PING -n 1 %ip% | FIND "TTL="
  97. IF ERRORLEVEL 1 (echo Offline...
  98. set /a ecount=%ecount%+1
  99. set onoff=Offline) ELSE (set onoff=Online)
  100. title ! Drams Advanced Pinger ! (Host: "%ip%" Pings remaining: %pad% Error count: %ecount% Status: %onoff%)
  101. IF "%pamount%"=="1" (echo.
  102. goto done) ELSE (set /a pamount=%pamount%-1
  103. goto ping)
  104.  
  105. goto error
  106.  
  107. :checkview1
  108. IF "%iviewed%"=="0" (set /a iviewed=1
  109. goto done2)
  110.  
  111. :done
  112. title ! Drams Advanced Pinger ! (Successfully finished pinging "%ip%")
  113. echo Successfully finished pinging %ip% type x to go back, type i for more info.
  114. echo.
  115. set /a tpa=%pa%-%ecount%
  116. IF %tpa% GEQ %ecount% (set avg=online) ELSE (set avg=offline)
  117. echo Host was mostly %avg%.
  118. echo.
  119. set /p ecmd=
  120.  
  121. IF "%ecmd%"=="x" (goto welcome)
  122. IF "%ecmd%"=="i" (goto checkview1)
  123.  
  124. :done2
  125. cls
  126. title ! Drams Advanced Pinger ! (Successfully finished pinging "%ip%")
  127. echo Successfully finished pinging %ip% press anything to go back.
  128. echo.
  129. set /a tpa=%pa%-%ecount%
  130. IF %tpa% GEQ %ecount% (set avg=online) ELSE (set avg=offline)
  131. echo Host was mostly %avg%.
  132. echo.
  133. echo Total successful requests:%tpa%
  134. echo Total denied requests:%ecount%
  135. echo Most recent status: %onoff%
  136. pause>nul
  137. goto welcome
  138.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement