- @echo off
-
- color f0&setlocal enabledelayedexpansion
-
- for /f "delims=" %%a in ('dir /b /a:-d d:\数据1\*txt') do (
-
- (for /f "delims=" %%b in (%%~fsa) do (
-
- set n=%%b,p
-
- echo 2=!n:~0,1! !n:~1,1!
-
- :loop
-
- echo 2=!n:~0,1! !n:~1,1!
-
- set n=!n:~3!
-
- if not "!n!" == "p" goto :loop
-
- )
-
- ) >>d:\数据2\%%~nxa
-
- )
-
- pause
复制代码
|