- @echo off&setlocal enabledelayedexpansion
- (for /f "delims=" %%a in ('dir /b /a-d *.ini^|findstr /x "[0-9][13579]\.ini"') do (
- set /p str=
- (for /f "tokens=1-2* delims=_=" %%i in ("!str!") do (
- findstr /vil "keyName= key= UserName= Password=" "%%a"
- echo,%%iName=%%j
- echo,%%i=%%k
- ))>temp
- move /y "temp" "%%a"
- ))<key.ini
- pause
复制代码
|