- @echo off
- setlocal enabledelayedexpansion
- for /f %%i in ('dir/b/on *.txt') do (
- set/a n+=1
- set m=
- for /f "tokens=*" %%j in ('type "%%i"') do (
- set/a m+=1
- set #!n!!m!=%%j))
- (for /l %%i in (1,1,%m%) do (
- for /l %%j in (1,1,%n%) do (
- call echo !#%%j%%i!
- echo\)))>a.txt
- start a.txt
复制代码
|