貌似是这样:- @echo off
- set /a 列数=5,列宽=32
- %1 %0 :|more /t%列宽% >b.txt&pause&exit
- for /f "delims=U" %%a in ('cmd /u /c echo 唉') do set "tab=%%a"
- (for /f "delims=" %%a in (a.txt) do (
- set str=%%a
- setlocal enabledelayedexpansion
- set /p=!str!%tab%
- endlocal
- set /a n+=1,n%%=列数,n/n||echo;
- ))<nul 2>nul
复制代码
|