回复 1# Vidisdatadown
1.txt 是5行文本文件
1.srt 是被插入的字幕文件
2.srt 是插入后的字幕文件(结果文件)
- @echo off &setlocal enabledelayedexpansion
- set "k=" &(for /f "delims=" %%a in (1.srt) do (
- set/a "k+=1"&echo,%%a
- if !k! equ 3 set/p v=&echo,!v!&echo,&set "k="
- ))>2.srt <1.txt
- pause &exit/b
复制代码
|