
CODE: [Copy to clipboard]1.txt文本内容如下(20个Q号):set "strOne=explorer.exe http://user.qzone.qq.com/"
set "strTwo="
for /f "tokens=1 delims=-" %%i in (1.txt) do (
>>a.bat echo %strOne%%%i%strTwo%
)
setlocal enabledelayedexpansion
set b=1
for /f "delims=" %%i in (a.bat) do (
set /a n+=1
echo !n!
if !n! gtr 20 (set n=0&set /a b+=1
) else (echo %%i>>!b!.bat)
)
del a.bat
| Quote: | |
|
CODE: [Copy to clipboard]如有不足之处...请高手指点..set "strOne=explorer.exe http://user.qzone.qq.com/"
set "strTwo="
for /f "tokens=1 delims=-" %%i in (1.txt) do (
>>a.bat echo %strOne%%%i%strTwo%
)
set/p =<nul>c.bat
for /f "delims=" %%i in (a.bat) do (
if not defined %%i set %%i=A & echo %%i>>c.bat
)
del a.bat
setlocal enabledelayedexpansion
set b=1
for /f "delims=" %%i in (c.bat) do (
set /a n+=1
echo !n!
if !n! gtr 20 (set n=0&set /a b+=1
) else (echo %%i>>!b!.bat)
)
del c.bat
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |