bat怎么在文本文档中指定位置插入符号

如在a.txt的第25行,第17列插入abcd四个字符,怎么做到?

@echo off
setlocal ENABLEDELAYEDEXPANSION
(for /f "tokens=*" %%i in (a.txt) do (
set /a n+=1
set s=%%i
if !n!==25 (echo !s:~,16!abcd!s:~16!) else echo !s!))>temp.txt
ren temp.txt a.txt

温馨提示:答案为网友推荐,仅供参考