Windows 10: Path from command prompt is different from Path in Environment Variables

Discus and support Path from command prompt is different from Path in Environment Variables in Windows 10 Gaming to solve the problem; In Command Prompt, path command generates the following I add new-line to make more readable:ATH=C:\Program Files\Common... Discussion in 'Windows 10 Gaming' started by hipswich, Feb 7, 2024.

  1. hipswich Win User

    Path from command prompt is different from Path in Environment Variables


    In Command Prompt, path command generates the following I add new-line to make more readable:ATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_192;C:\Python38\Scripts\;C:\Python38\;C:\Program Files x86\Microsoft SDKs\Azure\CLI2\wbin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files x86\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\OD

    :)
     
    hipswich, Feb 7, 2024
    #1

  2. Set command shows different Path in command prompt than the Environmental Variables GUI

    Windows 10 Home x_64. Over the years I must have either deleted a few programs improperly or the uninstall programs didn't complete as expected. Either way my %PATH% environment variable needs a clean-up. When I open a command prompt and type "set", then
    scroll through the results of the PATH variable, it shows more entries than are shown when I bring up the Environment Variables gui through System.

    I am trying to remove some of the paths that show up through the "set" command, but they are not displayed when I run System/Advanced/Environment Variables through the GUI.

    Where does a command prompt read the %PATH% variable from and how can I edit it?

    Thanks in advance.

    ***Modified title from: Path variable as shown thru Command Line "Set" command does not match What is shown in System gui***
     
    DeanPowell1, Feb 7, 2024
    #2
  3. Nikhar_K Win User
    Set command shows different Path in command prompt than the Environmental Variables GUI

    Hi,

    Thank you for writing to Microsoft Community Forums.

    The Set command is used to display the Environmental variables. The Paths displayed on the command prompt contains the Path for the program files, Common program files, User files, AppData along with the Path displayed in the Environmental Variables
    GUI. You can refer the article
    Set
    for more information on the Set command. You can also refer the article

    Environment Variables
    for more information on Environment Variables.

    However, if you require more information and further assistance, I would also suggest you to post your query in

    TechNet forums
    , where we have support professionals who are well equipped with the knowledge on this particular subject.

    Hope it helps.

    Nikhar Khare

    Microsoft Community - Moderator
     
    Nikhar_K, Feb 7, 2024
    #3
  4. Path from command prompt is different from Path in Environment Variables

    Win10 Advanced System Settings shows different path than Command Prompt PATH

    The changes to User Variables I made in System Properties (aka Advanced System Settings) Environment Variables do NOT appear in Command Prompt's PATH, despite a reboot. Several items in Environment Variables are not in the PATH.

    Why not, but more importantly, how can I fix it?

    I can't get PyCharm and Python to work properly, without them being in the PATH.

    NOTES: I solved this issue for myself by using System Restore, but it's disturbing.

    I made copies of the Command Prompt PATH in a Notepad text file, before and after making changes. So I KNOW 100% that there's a disconnect between Advanced System Settings' Environment Variables and the actual PATH used by Windows apps / Command Prompt.

    I'm shocked! What?!

    Apparently, Environment Variables is just a copy of the PATH, but not the PATH. Any change to it *ought* to directly change the PATH, but my experience proves that it doesn't (always).
     
    SWalkerELT, Feb 7, 2024
    #4
Thema:

Path from command prompt is different from Path in Environment Variables

Loading...
  1. Path from command prompt is different from Path in Environment Variables - Similar Threads - Path command prompt

  2. Powershell breaks with semicolons in the PATH environment variable

    in Windows 10 Gaming
    Powershell breaks with semicolons in the PATH environment variable: I've been going down a rabbit hole with how Powershell processes the PATH environment variable. I am developing a program that helps manage the PATH, and I recently discovered that it has issues when a path containing semicolons is added to the PATH.According to [this comment...
  3. Powershell breaks with semicolons in the PATH environment variable

    in Windows 10 Software and Apps
    Powershell breaks with semicolons in the PATH environment variable: I've been going down a rabbit hole with how Powershell processes the PATH environment variable. I am developing a program that helps manage the PATH, and I recently discovered that it has issues when a path containing semicolons is added to the PATH.According to [this comment...
  4. Path from command prompt is different from Path in Environment Variables

    in Windows 10 Software and Apps
    Path from command prompt is different from Path in Environment Variables: In Command Prompt, path command generates the following I add new-line to make more readable:ATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_192;C:\Python38\Scripts\;C:\Python38\;C:\Program Files x86\Microsoft...
  5. Multiple PATH environment variables

    in Windows 10 Ask Insider
    Multiple PATH environment variables: [ATTACH] There's a package that I want to install and it says in order to install it, it needs to be added to the PATH. Upon checking my environment variables, I noticed there are three of them as shown:...
  6. regarding path variable of user variable of environment variable

    in Windows 10 Customization
    regarding path variable of user variable of environment variable: please help me fast, I accidentally deleted path variable of user variable ..... I want to restore it. the real situation is I cannot run android studio project and it shows error - " unable to start daemon process............This problem might be caused by incorrect...
  7. Set command shows different Path in command prompt than the Environmental Variables GUI

    in Windows 10 Customization
    Set command shows different Path in command prompt than the Environmental Variables GUI: Windows 10 Home x_64. Over the years I must have either deleted a few programs improperly or the uninstall programs didn't complete as expected. Either way my %PATH% environment variable needs a clean-up. When I open a command prompt and type "set", then scroll through the...
  8. Setting path variable in Environment variables Windows 10

    in Windows 10 Customization
    Setting path variable in Environment variables Windows 10: How can I stack up multiple path variables? Currently, it overwrites the old one when I try to edit. (I believe mindless updates are bad and updates should only happen when it is reasonably certain they will improve usability, and not just so that some people have a job.)...
  9. Automated modification of PATH environment variables

    in Windows 10 Performance & Maintenance
    Automated modification of PATH environment variables: The following archive contains scripts to safely edit the "Path" values in HKCU and HKLM. Useful to run after a new installation. path.7z New path inclusions are specified in "path.txt". Run "path.bat" to commit any changes. 103736
  10. Reset Java Environment Variable Path

    in Windows 10 Support
    Reset Java Environment Variable Path: I had to restore my PC to factory settings because of a virus (maybe overkill, not sure) and reinstalled the Java JDK and editing the Environment Variable for Path. First try gave me this: [img] Second try gave me this (I can't remember how): [img] I'm trying...