Código
::Lock Url 5.1 ::by Carlos ::Accepts parameter by the name of a text file with a list of urls @echo off set IP=0.0.0.0 :start call :logo call :mode :lock call :logo set option= echo Options: echo - 1 Add url echo - 3 Show urls echo. set /p option=Enter option: goto lock goto lock :show type "%FILE%" | %findstr% /b /v "#" | sort | more goto lock goto:eof :del echo. set delurl= goto yesoryes :yesoryes echo. set confirm= set /p confirm="Is that correct? [y/n/cancel]: " goto yesoryes :find type "%FILE%" | %findstr% /i /v "%delurl%$">"%FILE%.bak" echo The url has been deleted. goto lock :add echo. set url= set /p url="Enter Url to add: " goto yesorno :yesorno echo. set confirm= set /p confirm="Is that correct? [y/n/cancel]: " goto yesorno :attrib goto:eof :mode goto lock goto:eof :argmode :verify_0 goto without0 :verify_1 goto without1 goto:eof :with0 call :with1 goto again :without0 call :without1 goto again :with1 call :attrib echo The url has been added. goto:eof :without1 call :attrib echo The url has been added. goto:eof :again echo. set again= set /p again="Add other url? [y/n]" goto again :logo cls echo \--------------------/ echo \ LockUrl v5.1 / echo \ by Carlos / echo \--------------------/ echo. call:attrib goto:eof :message :exit ::Lock Url 5.1 ::by Carlos