- @echo off & setlocal enabledelayedexpansion
- for /f "delims=" %%i in (a.txt) do (
- set /a i+=1
- set #!i!=%%i
- )
- (for /l %%i in (1,1,%i%) do (
- set /a j=%%i+1
- for /l %%j in (!j!,1,%i%) do (
- set /a k=%%j+1
- for /l %%k in (!k!,1,%i%) do (
- echo;!#%%i! !#%%j! !#%%k!
- )
- )
- ))>b.txt
- pause & exit /b
复制代码
|