回复 6# s091200
| @echo off | | cd /d "%~dp0" | | for /f "delims=" %%i in ('dir /b /a-d *.txt') do ( | | call :1 "%%i" | | ) | | pause | | exit | | | | :1 | | set /p str=<"%~1" | | (for /f "useback skip=1 delims=" %%i in ("%~1") do ( | | set _str=%%i | | setlocal enabledelayedexpansion | | echo !_str:^&=%str%^&! | | endlocal | | )) > "%~n1_2%~x1" | | | | exit /bCOPY |
|