Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @cls
- @echo off
- set address=d:\utorrent\ipfilter.dat
- set ip=%1
- if exist "%address%" goto :before
- cls
- echo.
- echo Utorrent "ipfilter.dat" file do not exist
- echo. update Block.cmd file with new address
- pause
- exit
- :before
- if "%1" == "" goto :process_Input
- if "%1" == " " goto :process_Input
- if "%1" == " " goto :process_Input
- :after
- echo "%ip%" | find /i ":"
- IF "%ERRORLEVEL%" == "0" (
- cls
- echo.
- echo No port allowed.
- echo.
- pause
- exit
- )
- attrib %address% -r -a -s -h
- echo. >>%address%
- echo %ip% - %ip%, 000, >>%address%
- IF ERRORLEVEL 1 (
- cls
- echo.
- echo process fail.
- echo.
- pause
- )
- exit
- :process_Input
- set /p ip=Enter Ip:
- goto :after
Add Comment
Please, Sign In to add comment