本帖最后由 路过 于 2021-1-19 14:28 编辑
- @echo off
- setlocal enabledelayedexpansion
- set "mydir=D:\Data\PRE\"
- pushd "%mydir%"
-
- (for %%A in (*.txt) do (echo;//%%A:-----------------------
- for /f "usebackq tokens=1-10,*" %%a in ("%%A") do (
- if %%j geq 500 (echo;%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k)
- )
- )
- )>result.txt
- start result.txt
- pause
- exit
复制代码
|