Share via

Command not recognized on prompt despite being in PATH

Anonymous
2025-04-11T07:35:53+00:00

Hi, my issue is similar to Commands on command prompt are showing up as "not recognized" - Microsoft Community, but the suggestion there didn't help me and that thread is locked. I did restart the PC after adding those paths to the list. See screenshot here (direct image upload keeps failing :D ). Any ideas how to make the command work without writing full path every time, please?

Thanks,

Ondrej

Windows for home | Windows 11 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2025-04-14T12:44:38+00:00

    Thanks for the suggestion. I prefer sharing just the minimum necessary parts, and see no reason for using gofile.io. I guess we are interested in the line Path there, which contains:

    C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Docker\Docker\resources\bin;C:\Users\PC\AppData\Local\Microsoft\WindowsApps;

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-04-11T10:13:54+00:00

    Hi.

    Download Process Explorer.

    https://learn.microsoft.com/en-us/sysinternals/...

    Run Process Explorer as administrator.

    Open Command Prompt.

    In Process Explorer, double-click the Command Prompt process.

    Select "Environment".

    Press Ctrl + A to select all entries.

    Open Notepad.

    Paste the entries into Notepad.

    Save the file and share it on GoFile.io.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-04-11T09:56:58+00:00

    Hi Ramesh,

    thanks for your quick reply. Unfortunately, the problem persists.

    After removing the paths, adding in the expanded format, and restarting the PC, the Path variable now contains:

    C:\Users\PC\AppData\Local\Microsoft\WindowsApps

    C:\Users\PC\Documents\DNA_software\dorado-0.9.5-win64\bin

    C:\Windows\System32

    but the prompt still behaves as before, not recognizing the command.

    Best,

    Ondrej

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-04-11T08:13:29+00:00

    Hi Ondrej,

    In the Environment Variables dialog, double-click Path (under User variables).

    Delete the existing paths and add them manually using the expanded format:

    Example:

    C:\Users\Ramesh\AppData\Local\Programs\Fiddler

    Was this answer helpful?

    0 comments No comments