cmd 命令帮助
- @echo off&set "ko= "
- ::code 随风 @bbs.bathome.net 2008-04-22
- setlocal enabledelayedexpansion
- for /f "delims= " %%a in ('help^|findstr /i "^[a-z]"') do (
- set /a n+=1&set _!n!=%%a!ko!
- )
- set _72=共71个命令
- :loop
- color 1f&title cmd 命令帮助
- for /l %%a in (1 3 !n!) do (
- set /a t=%%a+1,s=t+1
- if !t! lss 10 (set l=0) else set "l="
- call echo !l!%%a. !_%%a:~0,20! !l!!t!. %%_!t!:~0,20%% !l!!s!. %%_!s!:~0,10%%
- )
- set /p m=请输入编号查询相应命令帮助:&cls
- set /a m=100!m!%%100
- call set ok=%%_!m!%%
- title %ok:~0,10% 命令帮助&color 1e
- %ok% /? | more
- color 5a&echo.&echo 按任意键回主菜单。。。
- pause>nul
- cls&goto loop
复制代码
|