CODE: [Copy to clipboard]
@echo off&setlocal enabledelayedexpansion
set dfhtml=index.html
set dffilety=txt
set website=http://www.pediy.com/tools/Debuggers/ollydbg/
type nul>list.txt
for /f "delims=" %%a in ('findstr "href=" %dfhtml%') do (
set "str=%%a"
set "str=!str:href=★!"
set "str=!str:*★=!
if "!str:~-3,3!" == "%dffilety%" (call :prt "!str:~2!")
)
@cls.
@echo. ┏━━━━━━━━━━━━━━━━━━━━━━━━┓
@echo. ┃ ┃
@echo. ┃ Work finished...!! ┃
@echo. ┃ please Wait.... ┃
@echo. ┃ ┃
@echo. ┃ The Files will show U In 5's... ┃
@echo. ┃ ┃
@echo. ┃ Thank U for Ur time~ ┃
@echo. ┃ BoodBye...! ┃
@echo. ┗━━━━━━━━━━━━━━━━━━━━━━━━┛
@echo.
@echo.
@echo.
@ping -n 5 127.1>nul ¬epad list.txt
goto :eof
:prt
setlocal
set "chr=%~1★"
set "chr=!chr:"=!"
set outp=%website%
set/a n=0
:chck
set "tp=!chr:~%n%,1!" &&set/a n+=1
if [!tp!] == [★] goto op
set tm=!tp!
if "!tp!" == " " set tm=^%%20
if "!tp!" == "&" set tm=^%%26
if "!tp!" == "'" set tm=^%%27
:nx
set outp=!outp!!tm!
goto chck
:op
>>list.txt echo %outp: =%
echo %outp: =%
endlocal
goto :eof
GetB.cmd 采用 变量扩展 过滤: