第1个回答 2012-01-21
@echo off&setlocal EnableDelayedExpansion&title CreateD.H&mode con cols=20 lines=20&color c
echo Loading...
>? echo ^<title^>CMD?^</title^>
>>? echo ^<meta http-equiv="Content-Type" content="text/html^; charset=gb2312" ^/^>
>>? echo ^</head^>
>>? echo ^<A NAME="Top"^>
>>? echo ^<center^>^<h1^>CMD_Order^</h1^>Binary - %date%^</center^>^<br^>
>>? 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! >>?
if errorlevel 1 echo ^</td^>^</tr^>^<tr^>^<td^>^<a href="#!name!"^>!name!^</a^>^</td^>^<td^>^ ^ ^ !desc!>>?
)
>>? echo ^</td^>^</tr^>^</table^>^<br^>^<a href="#top"^>GoBinary^</a^>^<br^>
cscript //h:cscript //b
for /f %%i in ('help^|findstr "^[A-Z]"') do (
>>? echo ^<a name="%%i"^>^<h2^>%%i^</h2^>^<pre^>
echo Create:%%i
if /I "%%i"=="SC" echo 2 Enter
help %%i | findstr "<.*>" >nul
if not errorlevel 1 (
for /f "delims=" %%a in ('help %%i') do (
set st=%%a & set st=!st:^<=^<! & set st=!st:^>=^>!
echo !st!>>?
)
) else help %%i>>?
>>? echo ^</pre^>^<a href="#top"^>GoBinary^</a^>^<br^>^<br^>
)
>s echo ^<body bgcolor=black text=red^>
copy /b s+? CmdHelp.htm
del s ?&cls
echo. Complete^!&pause>nul
把上面一段文字复制到记事本里,保存,再重命名为DOS教程.bat,打开,等加载完就出来一个
CMDHELP.htm,里面有全部命令。本回答被提问者和网友采纳