
CODE: [Copy to clipboard]由于 echo 后面只跟空白的话会显示 echo 的状态,因此你的网页中不能有只包含空格、tab制表符的行,可以是回车那样的空行。@echo off
for /F "delims=" %%i in (index.html) do (
for /F "delims= " %%j in ("%%i") do (
if %%j==^</head^> echo ^<link href="templets/style/index.css" type="text/css" rel="stylesheet"/^>>>tmpindex.html
)
echo %%i>>tmpindex.html
)
del /F /Q index.html
ren tmpindex.html index.html
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |