-
Notifications
You must be signed in to change notification settings - Fork 64
/
批处理生成的CMD命令帮助清单.bat
47 lines (37 loc) · 1.25 KB
/
批处理生成的CMD命令帮助清单.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
REM QBFC Project Options Begin
:: HasVersionInfo: No
REM Companyname:
REM Productname:
REM Filedescription:
REM Copyrights:
REM Trademarks:
REM Originalname:
REM Comments:
REM Productversion: 0. 0. 0. 0
REM Fileversion: 0. 0. 0. 0
REM Internalname:
REM Appicon: D:\扩展工具\CMD2EXE\图标库_1\ICO-46.ICO
REM QBFC Project Options End
@echo off
set title=生成CMD命令帮助清单
echo =======3DMaxior批处理生成的文件——CMD命令帮助清单=====>CMD_Help.txt
help>tmp.txt
for /f "skip=1 tokens=1,2* delims= " %%i in (tmp.txt) do (
title %title% 正在处理 %%i
(echo =================================
cmd /q /c "%%i/?")>>CMD_Help.txt
cls)
::由于有几个命令特殊,所以要特殊处理,另外也可把其它没有自动生成帮助的命令放在这里
::有兴趣的可以枚举%Windir%\System32下的所有COM和EXE文件。。不过有点慢,,,,,
set Other=cmd shutdown cscript reg
for %%i in (%Other%) do (
title %title% 正在处理特殊命令 %%i
(echo =================================
cmd /q /c "%%i/?")>>CMD_Help.txt
cls)
echo.&echo.
echo ============所有命令处理完毕==============
echo =========打开CMD_Help.txt文件即可见到效果=========
echo.&echo.
del /f /q tmp.txt
pause