- @echo off
- setlocal enabledelayedexpansion
- for /f "delims=" %%a in (1.txt) do (
-
- if "!do!"=="start" if "%%a" neq "配置文件:" (
- for /f "delims=/" %%b in ("%%a") do (
- >>"C:\%%b.txt" echo %%~nxa
- )
- )
-
- if "%%a" == "更新文件:" set "do=start"
- if "%%a" == "配置文件:" set "do="
- )
-
- pause
复制代码
|