牛人写的CMD命令速查手册

来源:互联网 发布:黑客也是程序员 编辑:程序博客网 时间:2024/05/16 14:23
 @echo off

::wang-20080205-xg双语版CMD命令速查手册
setlocal EnableDelayedExpansion
@echo   请稍候,正在创建CMD命令目录...
>CMD命令速查手册.htm echo ^<center^>^<h1^>CMD 命令速查手册^</h1^>%username% in %date% %time%^</center^>^<br^>
>>CMD命令速查手册.htm echo ^<table^>
for /f "delims=:" %%f in ('help^|findstr /n "^ASSOC"') do set head=%%f
set /a head-=1
if "%head%"=="0" (set head=) else set head=skip=%head%
for /f "%head% delims=" %%i in ('help') do (
    set str=%%i & set name=!str:~0,9! & set desc=!str:~9!
    echo.!name! | findstr /v "^[A-Z]" >nul && echo !desc! >>CMD命令速查手册.htm
if errorlevel 1 echo ^</td^>^</tr^>^<tr^>^<td^>^<a href="#!name!"^>!name!^</a^>^</td^>^<td^>^ ^ ^ !desc!>>CMD命令速查手册.htm
)
cls
>>CMD命令速查手册.htm echo ^</td^>^</tr^>^</table^>^<br^>^<a href="#top"^>返回页首^</a^>^<br^>
for /f  %%i in ('help') do  (
echo     *       *       *       *       *       *       *>>CMD命令速查手册.htm
echo.>>CMD命令速查手册.htm
>>CMD命令速查手册.htm echo ^<a name="%%i"^>^<h2^>%%i^</h2^>^<pre^>
cls
graftabl 936>nul
@echo  正在创建 %%i 命令帮助 ...
help   %%i>>CMD命令速查手册.htm
echo     ────────────────────────>>CMD命令速查手册.htm
echo      英文对照:>>CMD命令速查手册.htm
cls
chcp 437>nul
help   %%i>>CMD命令速查手册.htm
echo.>>CMD命令速查手册.htm
>>CMD命令速查手册.htm echo ^</td^>^</tr^>^</table^>^<br^>^<a href="#top"^>返回页首^</a^>^<br^>
)
graftabl 936>nul
start CMD命令速查手册.htm
 
http://www.cn-dos.net/forum/viewthread.php?tid=37576&pid=257500&page=1&sid=KLsyoo#pid257500