楼主想表达什么?不是很懂- echo off&cls&&echo 请耐心等待,代码正在执行中...
- for %%a in (1 2 3 4 5) do (
- echo %%a>>a1.txt
- echo %%a>>a5.txt
- for %%b in (1 2 3 4) do (
- echo %%a>>a2.txt
- for %%c in (1 2 3) do (
- echo %%a>>a3.txt
- for %%d in (1 2) do (
- echo %%a>>a4.txt
- )
- )
- )
- )
复制代码 或者- echo off&cls&&echo 请耐心等待,代码正在执行中...
- setlocal enabledelayedexpansion
- set n=1" "2" "3" "4" "5
- for %%a in (1 2 3 4 5) do (
- echo %%a>>a1.txt
- for %%b in (1 2 3 4) do (
- echo %%a>>a2.txt
- for %%c in (1 2 3) do (
- echo %%a>>a3.txt
- for %%d in (1 2) do (
- echo %%a>>a4.txt
- for %%e in ("!n!") do (
- set n=
- echo %%a>>a5.txt
- )
- )
- )
- )
- )
复制代码
|