复制代码
- @echo off
- for %%a in (*.csv) do (
- for /f "delims=" %%i in ("%%a") do (
- >b.txt echo %%i
- goto c
- )
- :c
- )
复制代码
- @echo off
- for /r %%i in (*.txt) do (
- set /p firstline=<"%%i"
- call echo;%%firstline%%
- )
- pause & exit /b
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |