非常的强啊,将下列内容用记事本做成bat文件,然后运行即可
复制代码 代码如下:
@echo off
del CMD命令速查手册.htm >nul
echo.===============================
echo......请稍候,构造htm文件中.....
echo.===============================
>CMD命令速查手册.htm echo ^<head^>
CMD命令速查手册.htm echo ^<title^>CMD命令速查手册^</title^>
CMD命令速查手册.htm echo ^<meta http-equiv="Content-Type" content="text/html; charset=gb2312" ^/^>
CMD命令速查手册.htm echo ^<META http-equiv=refresh content=10;URL=http:^/^/Www.jb51.net^>
CMD命令速查手册.htm echo ^</head^>
CMD命令速查手册.htm echo ^<A NAME="Top"^>
CMD命令速查手册.htm echo ^<center^>
CMD命令速查手册.htm echo ^<h1^>CMD 命令速查手册^</h1^>
CMD命令速查手册.htm echo Written by junluck %date%
CMD命令速查手册.htm echo ^</center^>
CMD命令速查手册.htm echo ^<br^>
ver|find "Windows XP" && goto:joke
for /f "tokens=1*" %%i in ('help^|more +3') do (
help %%i>nul && echo ^<a href="#%%i"^>%%i^</a^>^ ^ %%j CMD命令速查手册.htm || echo ^ ^ ^ ^ %%i %%jCMD命令速查手册.htm
CMD命令速查手册.htm echo ^</br^>
)
for /f %%i in ('help^|more +3') do (
help %%i>nul && (
CMD命令速查手册.htm echo ^<a name="%%i"^>
CMD命令速查手册.htm echo ^<h2^>%%i^</h2^>
CMD命令速查手册.htm echo ^<pre^>
help %%iCMD命令速查手册.htm
CMD命令速查手册.htm echo ^</pre^>
CMD命令速查手册.htm echo ^<a href="#top"^>返回页首^</a^>
)
)
start CMD命令速查手册.htm
goto:eof
:joke
for /f "tokens=1*" %%i in ('help^|more +1') do (
help %%i>nul && echo ^ ^ ^ ^ %%i %%jCMD命令速查手册.htm || echo ^<a href="#%%i"^>%%i^</a^>^ ^ %%j CMD命令速查手册.htm
CMD命令速查手册.htm echo ^</br^>
)
for /f %%i in ('help^|more +1') do (
help %%i>nul || (
CMD命令速查手册.htm echo ^<a name="%%i"^>
CMD命令速查手册.htm echo ^<h2^>%%i^</h2^>
CMD命令速查手册.htm echo ^<pre^>
help %%iCMD命令速查手册.htm
CMD命令速查手册.htm echo ^</pre^>
CMD命令速查手册.htm echo ^<a href="#top"^>返回页首^</a^>
)
)
start CMD命令速查手册.htm
复制代码 代码如下:
@echo off
del CMD命令速查手册.htm >nul
echo.===============================
echo......请稍候,构造htm文件中.....
echo.===============================
>CMD命令速查手册.htm echo ^<head^>
CMD命令速查手册.htm echo ^<title^>CMD命令速查手册^</title^>
CMD命令速查手册.htm echo ^<meta http-equiv="Content-Type" content="text/html; charset=gb2312" ^/^>
CMD命令速查手册.htm echo ^<META http-equiv=refresh content=10;URL=http:^/^/Www.jb51.net^>
CMD命令速查手册.htm echo ^</head^>
CMD命令速查手册.htm echo ^<A NAME="Top"^>
CMD命令速查手册.htm echo ^<center^>
CMD命令速查手册.htm echo ^<h1^>CMD 命令速查手册^</h1^>
CMD命令速查手册.htm echo Written by junluck %date%
CMD命令速查手册.htm echo ^</center^>
CMD命令速查手册.htm echo ^<br^>
ver|find "Windows XP" && goto:joke
for /f "tokens=1*" %%i in ('help^|more +3') do (
help %%i>nul && echo ^<a href="#%%i"^>%%i^</a^>^ ^ %%j CMD命令速查手册.htm || echo ^ ^ ^ ^ %%i %%jCMD命令速查手册.htm
CMD命令速查手册.htm echo ^</br^>
)
for /f %%i in ('help^|more +3') do (
help %%i>nul && (
CMD命令速查手册.htm echo ^<a name="%%i"^>
CMD命令速查手册.htm echo ^<h2^>%%i^</h2^>
CMD命令速查手册.htm echo ^<pre^>
help %%iCMD命令速查手册.htm
CMD命令速查手册.htm echo ^</pre^>
CMD命令速查手册.htm echo ^<a href="#top"^>返回页首^</a^>
)
)
start CMD命令速查手册.htm
goto:eof
:joke
for /f "tokens=1*" %%i in ('help^|more +1') do (
help %%i>nul && echo ^ ^ ^ ^ %%i %%jCMD命令速查手册.htm || echo ^<a href="#%%i"^>%%i^</a^>^ ^ %%j CMD命令速查手册.htm
CMD命令速查手册.htm echo ^</br^>
)
for /f %%i in ('help^|more +1') do (
help %%i>nul || (
CMD命令速查手册.htm echo ^<a name="%%i"^>
CMD命令速查手册.htm echo ^<h2^>%%i^</h2^>
CMD命令速查手册.htm echo ^<pre^>
help %%iCMD命令速查手册.htm
CMD命令速查手册.htm echo ^</pre^>
CMD命令速查手册.htm echo ^<a href="#top"^>返回页首^</a^>
)
)
start CMD命令速查手册.htm
标签:
用批处理生成网页文件并打开的代码
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
内蒙古资源网 Copyright www.nmgbbs.com
暂无“用批处理生成网页文件并打开的代码”评论...