
CODE: [Copy to clipboard]2,文本中不能有空行:@echo off
for /F "tokens=1* delims=:" %%a in ('findstr /n .* text.txt') do (
set "b=%%b"
setlocal enabledelayedexpansion
>>%%a.txt echo.!b!
Endlocal)
CODE: [Copy to clipboard][ Last edited by Hanyeguxing on 2010-6-15 at 09:18 ]@echo off
for /F "tokens=1* delims=:" %%a in ('findstr /n .* text.txt') do (
set "b=%%b"
setlocal enabledelayedexpansion
>>%%a.txt echo.[InternetShortcut]
>>%%a.txt echo.URL=!b!
Endlocal)
| Quote: | |
|

| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |