看错了,|和┃不一样啊!
粗的┃情况:- @echo off&setlocal enabledelayedexpansion
- set "head=一二三四五"
- set /a num=0
- for /f %%i in (a.txt) do (
- call echo %%head:~!num!,1%%┃%%i
- set /a num+=1
- )
- pause
复制代码 "或"字符|:- @echo off&setlocal enabledelayedexpansion
- set "head=一二三四五"
- set /a num=0
- for /f %%i in (a.txt) do (
- call set /p=%%head:~!num!,1%%<nul
- set /p=^|%%i<nul
- echo.
- set /a num+=1
- )
- pause>nul
复制代码
[ 本帖最后由 lhjoanna 于 2008-11-17 20:39 编辑 ] |