读取指定文件内容,这个没问题:- @echo off&color f0
- setlocal enabledelayedexpansion
- for %%i in (b.txt c.txt) do (
- for /f "delims=" %%j in (%%i) do echo %%j
- )
- pause
复制代码 读取指定文件内容,这个出错的原因不知道:- @echo off&color f0
- setlocal enabledelayedexpansion
- set n=0
- for %%i in (b.txt c.txt) do (
- for /f "delims=" %%j in (%%i) do (
- set /a n+=1
- if !n!==1 (echo %%j)
- )
- )
- pause
复制代码
|