Member Avatar for Member #1002324

What is the syntax of command for viewing list of commands in command prompt?I have tried help command but it does not work.

Dani AI

Generated

Thread summary: reported that the usual command-listing worked on other machines but not on a Windows 7 PC. supplied reference sites and correctly pointed toward environment‑variable issues. The checklist below follows those leads with next-step diagnostics and safe fallbacks that were not shown in the replies.

Quick diagnostic checklist (non‑destructive)

Check which command interpreter the shell is actually using. The COMSPEC variable should point to the real cmd.exe; if it points somewhere else the shell behavior can be different.

echo %COMSPEC%
where.exe cmd.exe

The COMSPEC/environment behavior is documented by Microsoft. (learn.microsoft.com)

If COMSPEC looks fine, check whether a policy or registry entry is preventing an interactive prompt. Look for DisableCMD under the policies key and read its value (0 = enabled, nonzero can block the prompt or scripts).

reg query "HKCU\Software\Policies\Microsoft\Windows\System" /v DisableCMD

This setting is the ADMX-backed policy that controls access to Cmd.exe; value semantics and how to inspect/change it are documented in Microsoft docs and practical how‑tos. (learn.microsoft.com)

Fallbacks and repair

PowerShell can enumerate available commands (cmdlets, aliases and applications) if a legacy cmd listing won’t run:

powershell -NoProfile -Command "Get-Command | Out-Host -Paging"

Get‑Command usage is documented by Microsoft. (learn.microsoft.com)

If the command interpreter itself looks corrupted or files are missing, run the System File Checker to repair protected system files:

sfc /scannow

SFC usage and guidance are on Microsoft Support. (support.microsoft.com)

Notes and cautions

  • Editing policy or registry keys and running repair tools require administrative privileges and care; back up the registry before changes.
  • On managed (university/work) machines the restriction may be intentional; check with the administrator.
  • If investigations point to unexpected modifications (cmd.exe in the wrong place or a policy key set without admin action), a full malware scan is prudent.

Recommended Answers

All 11 Replies

i would guess there are to many to list , this site in the says there are 280 of them ,and it would be a different number with each version of windows
another good site

What operating system are you referring to? There are slight differences and the list of commands will also slightly vary.

my first link has a list of all window versions

ah, didnt click on the link you provided.

Member Avatar for Member #1002324

I am using Windows 7. I visit that link but there is also 'help' command mentioned for that purpose. I have tried it but it does not work may be due to some syntax error.

In Windows 7, open a command prompt, simply type 'help' and hit enter. This will provide you with a list of commands.

Member Avatar for Member #1002324

I have tried it but it doesn't work and this message was displayed:
"'help' is not recognized as an internal or external help command, operable program or batch file"

try right click on the command icon and choose run as admin , and try, help

hmm..

When you open a command prompt, try this...

type 'set' hit enter. Scroll up if needed, look for the entry called "path". It should contain a listing of directory entries. You should have at least, c:\windows;c:\windows\system32;

If you don't that would explain why you are getting the "not recognized" message.

Member Avatar for Member #1002324

I have tried it but I have same list of directory entries as you mentioned. I will try 'help' command in my university lab. Maybe it work.

Member Avatar for Member #1002324

Thnx JorgeM and caperjack. The help command was not working on my PC but it worked on other one.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.