首页 > 系统 > DOS > 正文

最全的DOS命令帮助程序批处理代码

2020-07-26 20:19:52
字体:
来源:转载
供稿:网友
根据命令命名的txt
复制代码 代码如下:

@echo off
:z
@cls
@set /p "d=输入要BAT指令:"
@ %d% /? > %d%.txt
goto z
goto z

都是生成a.txt的帮助文档
复制代码 代码如下:

@echo off
color 0e
:ks
cls
echo ==========================
echo 欢迎使用批处理帮助程序
echo %DATE% (by:诗酒飘零)
echo ==========================
echo.
echo 请输入你想查询的批处理命令?
echo (q键退出;h键帮助)
echo.
set /p lc= ★命令★:
if %lc%==q goto e
if %lc%==h help
%lc% /? >a.txt
if errorlevel 1 goto no
if errorlevel 0 goto yes
:yes
start a.txt
goto ks
:no
echo ==========================================
echo 找不到你要的批处理命令,请检查后重新输入命令!
echo =========================================
del a.txt
pause
call %0
:e
del a.txt
exit
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表