回复 1# qlit
V1.bat- @echo off
- cd /d "%~dp0"
- setlocal enabledelayedexpansion
- set "OldFile=1.txt"
- set "NewFile=2.txt"
- type nul > "%NewFile%"
- for /f "delims=" %%i in ('type "%OldFile%"') do (
- set "ThisRow=%%i"
- if "!ThisRow:链接=!" neq "!ThisRow!" (
- set /p =!ThisRow! <nul
- >> "%NewFile%" set /p =!ThisRow! <nul
- ) else if "!ThisRow:提取码=!" neq "!ThisRow!" (
- echo,!ThisRow!
- >> "%NewFile%" echo,!ThisRow!
- )
- )
复制代码
|