- @echo off
- call :replace count wxwei Login.txt
- :replace
- (for /f "delims=" %%i in ('findstr /n .* "%~3"') do (
- set "str=%%i"
- setlocal enabledelayedexpansion
- set "str=!str:*:=!"
- set "str=!str:%~1=%~2!"
- echo;!str!
- endlocal
- ))>Auto_tmp.txt
- move /y Auto_tmp.txt %3
- goto :eof
复制代码
|