Advertisement
Guest User

niggernigger

a guest
Apr 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. color F
  2.  
  3. cls
  4.  
  5. @ECHO ________________________________________________________________________
  6. @ECHO Auto Renew IP Address and Flush DNS
  7. @ECHO ________________________________________________________________________
  8. @ECHO Press any key to execute
  9. @ECHO ________________________________________________________________________
  10.  
  11. :re-execute>nul
  12.  
  13. @ECHO off
  14.  
  15. PAUSE>nul
  16.  
  17. NBTSTAT -RR>null
  18.  
  19. ipconfig /flushdns>null
  20.  
  21.  
  22. ipconfig /release>null
  23.  
  24.  
  25. ipconfig /renew>null
  26.  
  27.  
  28. IF EXIST "null*." ECHO Failed Release and Refresh of Registered names
  29. IF EXIST "null*." ECHO Access is denied, please run as administrator.
  30.  
  31. @ECHO ________________________________________________________________________
  32.  
  33. del "C:\Users\Joseph\Desktop\null*.">nul
  34.  
  35. @ECHO Auto Renew IP Address and Flush DNS
  36. @ECHO ________________________________________________________________________
  37. @ECHO Currently connected to
  38.  
  39. wmic NIC where NetEnabled=true get Name, speed
  40.  
  41. @ECHO ________________________________________________________________________
  42. @ECHO DISPLAYING ACTIVE CONNECTIONS
  43.  
  44. netstat -n
  45.  
  46. @ECHO ________________________________________________________________________
  47. @ECHO TESTING CONNECTION
  48.  
  49. Ping 8.8.8.8>nul
  50.  
  51. @ECHO %ERRORLEVEL%
  52.  
  53. IF %ERRORLEVEL% EQU 1 echo CONNECTION COULD NOT BE ESTABLISHED
  54.  
  55. IF %ERRORLEVEL% EQU 0 echo CONNECTION ESTABLISHED
  56.  
  57. @ECHO ________________________________________________________________________
  58. @ECHO Complete!
  59. @ECHO ________________________________________________________________________
  60. @ECHO Press any key to clear
  61. @ECHO ________________________________________________________________________
  62.  
  63. PAUSE>nul
  64.  
  65. cls
  66.  
  67. @ECHO ________________________________________________________________________
  68. @ECHO Press any key to re-execute
  69. @ECHO ________________________________________________________________________
  70. PAUSE>nul
  71.  
  72. goto :re-execute
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement