windows - 在 Windows 命令提示符中列出所有可用命令的命令

标签 windows cmd compgen

我想以编程方式获取 Windows 命令提示符 (cmd.exe) 中所有可用命令的列表。有没有类似 compgen -c in Bash 的东西,但对于 Windows?

最佳答案

这提供了 CMD 特定命令。

help

并使用这个来分页输出

help | more

关于windows - 在 Windows 命令提示符中列出所有可用命令的命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22158304/

相关文章:

linux - 在 linux 上使用 mingw 与 clang 交叉编译

c++ - windows - 如何访问总计 "user mode stack trace database(ust)"?

windows - 在 Windows CMD 批处理文件中的 IF/ELSE 语句内设置变量

bash - 自动完成提升程序选项

c - 优化: Faster compilation

c++ - 在 Windows 中读取当前鼠标坐标

windows - 在 Windows 批处理中获取单引号命令评估中带引号参数的命令结果

windows - 使用 "tokens=*"或 "delims="调用 FOR 在功能上是否等效?

linux - 子进程库不会执行 compgen