Windows 10: Powershell breaks with semicolons in the PATH environment variable

Discus and support Powershell breaks with semicolons in the PATH environment variable in Windows 10 Gaming to solve the problem; 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,... Discussion in 'Windows 10 Gaming' started by Zeek Joseph, Jan 20, 2025.

  1. 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 on Github]https://github.com/HorridModz/Flow.Launcher.Plugin.Add2Path/pull/8#issuecomment-2596593503 by another user, Powershell interprets the PATH by splitting using the delimiter, which is a semicolon. However, it interprets quotes literally.This is a problem, because adding a folder path that contains a semicol

    :)
     
    Zeek Joseph, Jan 20, 2025
    #1
  2. dalchina Win User
    dalchina, Jan 20, 2025
    #2
  3. MCK
    mck Win User
    System environment variable won't stick

    Running Win10 Home on an Acer Spin 3, 64bit, i7cpu. I try to add a path to the system environment variables by:

    1. Control Panel > System > Advanced system settings > Advanced tab > Environment variables

    2. The "Environment Variables" window opens.
    3. In the "System Variables" pane I select "Path" and click the EDIT button.
    4. A list of the current system paths is displayed.
    5. I click the NEW button, browse to the path I want to add which is "C:\Python36-32" and click OK. The path "C:\Python36-32" is added to the list of current system paths.
    6. I click OK and am returned to the "Environment Variables" window.
    7. I click the "X" at the top right to close the "Environment Variables" window.

    Now if I click the "Environment Variables" button again (end of step-1) and repeat steps 2-4, the new path I added in step-5 is gone. IOW, adding a new path won't stick.

    What am I doing wrong?
     
  4. Powershell breaks with semicolons in the PATH environment variable

    Environment variable troubles

    Well, I need to add a new environment variable to PATH and I have tried to do so through the GUI and PowerShell command lines. However even after I've done this PowerShell and Cmd both can't find the variable and end up redirecting me to the Microsoft store. The variable is a python executable for further elaboration. The path does show up in the PATH environment variables GUI but for whatever reason the system can't find it. Any help is greatly appreciated.
     
    WENDEL.MASON, Jan 20, 2025
    #4
Thema:

Powershell breaks with semicolons in the PATH environment variable

Loading...
  1. Powershell breaks with semicolons in the PATH environment variable - Similar Threads - Powershell breaks semicolons

  2. 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...
  3. Powershell breaks with semicolons in the PATH environment variable

    in Windows 10 Network and Sharing
    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 Gaming
    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. set path in windows 10 for environment variables

    in Windows 10 Customization
    set path in windows 10 for environment variables: Set path in windows 10 https://answers.microsoft.com/en-us/windows/forum/all/set-path-in-windows-10-for-environment-variables/b608e15a-4994-4d1a-ae4e-1d220293dc22
  6. 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:...
  7. 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...
  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...