- 帖子
- 46
- 积分
- 63
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2010-9-16
|
很好很强大...我想请班主给我再改改好吗?
@echo off&setlocal enabledelayedexpansion
for /f "delims=" %%a in (123.txt) do (
set /a n+=1
set ".!n!=%%a"
)
md temp
for %%i in (*.txt) do (
if not "%%~nxi"=="123.txt" (
set /a m=0,h=0
for /f "usebackq" %%a in ("%%i") do set /a m+=1
set "htm=temp\%%~ni.html"
echo %%~ni^
>"!htm!"
set /a w=!random!%%n+1,w2=!random!%%m+1
for /f "usebackq delims=" %%j in ("%%i") do (
set /a h+=1
if !h! equ !w2! (
for %%b in (!w!) do echo !.%%b!^
>>"!htm!"
)
echo %%j^
>>"!htm!"
)
)
)
现在我想随机插入的机率更高一点,现在一上文本只随机插入一个随机文字,我的意思就是能多插几个随机文字吗?
还有帮我把插入<BR>和改扩展名HTML的功能去掉,非常感谢!!!!
再次感谢! |
|