
CODE: [Copy to clipboard][ Last edited by Hanyeguxing on 2010-3-22 at 15:31 ]@echo off&setlocal ENABLEDELAYEDEXPANSION
(for /f "tokens=1,*" %%a in (test.txt) do (
set a=%%a&if "!a:~0,5!"=="我是分割符" set f=!a:~5!.txt
echo %%a %%b))>>!f!
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |