- @echo off
- setlocal enabledelayedexpansion&cls
- ::==============================================================
-
- for /f "tokens=* usebackq delims=" %%a in ("1.txt") do (
- set "src_str=%%a"
- set "src_str=!src_str:"=!"
- set "src_str=!src_str:<=!"
- set "src_str=!src_str:>=!"
- set "src_str=!src_str:.jpg=★!"
- set "src_str=!src_str:src=★!"
- echo\
- for /f "tokens=1-26 delims=★" %%A in ("!src_str!") do (
- echo %%A|findstr "^=http">nul&&(set "_a=%%A"&set "_a=!_a:~1!"&echo !_a!.jpg)
- echo %%B|findstr "^=http">nul&&(set "_a=%%B"&set "_a=!_a:~1!"&echo !_a!.jpg)
- echo %%C|findstr "^=http">nul&&(set "_a=%%C"&set "_a=!_a:~1!"&echo !_a!.jpg)
- echo %%D|findstr "^=http">nul&&(set "_a=%%D"&set "_a=!_a:~1!"&echo !_a!.jpg)
- echo %%E|findstr "^=http">nul&&(set "_a=%%E"&set "_a=!_a:~1!"&echo !_a!.jpg)
- echo %%F|findstr "^=http">nul&&(set "_a=%%F"&set "_a=!_a:~1!"&echo !_a!.jpg)
- echo %%G|findstr "^=http">nul&&(set "_a=%%G"&set "_a=!_a:~1!"&echo !_a!.jpg)
- echo %%H|findstr "^=http">nul&&(set "_a=%%H"&set "_a=!_a:~1!"&echo !_a!.jpg)
- )
- )>>destfile.txt
- call start notepad.exe destfile.txt
- ping /n 4 127.1>nul&del destfile.txt
- ::==============================================================
- :end
- goto:eof
复制代码 字母A-Z 自己加吧 呵呵 |