Guest User

Untitled

a guest
Jan 23rd, 2021
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1.  
  2. @cls
  3. @echo off
  4.  
  5. set address=d:\utorrent\ipfilter.dat
  6. set ip=%1
  7.  
  8. if exist "%address%" goto :before
  9. cls
  10. echo.
  11. echo Utorrent "ipfilter.dat" file do not exist
  12. echo. update Block.cmd file with new address
  13. pause
  14. exit
  15.  
  16. :before
  17. if "%1" == "" goto :process_Input
  18. if "%1" == " " goto :process_Input
  19. if "%1" == " " goto :process_Input
  20.  
  21. :after
  22. echo "%ip%" | find /i ":"
  23.  
  24. IF "%ERRORLEVEL%" == "0" (
  25. cls
  26. echo.
  27. echo No port allowed.
  28. echo.
  29. pause
  30. exit
  31. )
  32.  
  33. attrib %address% -r -a -s -h
  34. echo. >>%address%
  35. echo %ip% - %ip%, 000, >>%address%
  36.  
  37. IF ERRORLEVEL 1 (
  38. cls
  39. echo.
  40. echo process fail.
  41. echo.
  42. pause
  43. )
  44.  
  45. exit
  46.  
  47. :process_Input
  48. set /p ip=Enter Ip:
  49. goto :after
  50.  
Add Comment
Please, Sign In to add comment