I’d like to programmatically get a list of all the available commands in Windows Command Prompt (cmd.exe). Is there something like compgen -c in Bash, but for Windows?

有帮助吗?

解决方案

This provides CMD specific commands.

help

and to page the output use this

help | more
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top