Windows 10: System Path variable length problem

Discus and support System Path variable length problem in Windows 10 Support to solve the problem; I was having a problem with Apple's SyncServer.exe (part of iTunes). It was choking on the length of my system PATH environment variable (2388 bytes),... Discussion in 'Windows 10 Support' started by perdrix, Nov 22, 2016.

  1. perdrix Win User

    System Path variable length problem


    I was having a problem with Apple's SyncServer.exe (part of iTunes). It was choking on the length of my system PATH environment variable (2388 bytes), so I temporarily hacked it below 2047 bytes, and it worked OK.

    BUT I couldn't use Control panel/System/Advanced Systems Settings to restore it to what it was previously as that complained that the variable was too long.

    To quote MSDN:

    Luckily I was able to restore my PATH by using regedit to change the variable Path stored at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment which doesn't appear to suffer from the problem of the control panel.

    Is there any chance this will be fixed (ho ho).

    Dave

    :)
     
    perdrix, Nov 22, 2016
    #1
  2. perdrix52 Win User

    Cannot edit long Path Environment variable

    I was having a problem with Apple's SyncServer.exe (part of iTunes). It was choking on the length of my system PATH environment variable (2388 bytes), so I temporarily hacked it below 2047 bytes, and it worked OK.

    BUT I couldn't use Control panel/System/Advanced Systems Settings to restore it to what it was previously as that complained that the variable was too long.

    To quote MSDN: The maximum size of a user-defined environment variable is 32,767 characters. (omitted) Starting with Windows Vista and Windows Server 2008, there is no technical limitation on the size of the environment block.

    Luckily I was able to restore my PATH by using regedit to change the variable Path stored at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment which doesn't appear to suffer from the problem of the control panel.

    Is there any chance this will be fixed (**** ****).

    Dave
     
    perdrix52, Nov 22, 2016
    #2
  3. Rohn007 Win User
    Attempts to get into the System Protection menu of System Properties fails.

    I haven't been able to find a good answer for this error. It is not likely a RAM or HD space issue. It is more likely a hard coded limit in a variable. Often related to path length limits of 256 char.

    On the off chance it is a RAM issue, have you tried restarting the computer since encountering the problem, and retrying the process.
     
    Rohn007, Nov 22, 2016
    #3
Thema:

System Path variable length problem

Loading...
  1. System Path variable length problem - Similar Threads - System Path variable

  2. System variables what does path do

    in Windows 10 Support
    System variables what does path do: Testing a method on a bench machine i have i added my programs folder to the path section of my system variables and programs like iTunes was displayed quicker on the screen. What is the path section of system variables do? 143116
  3. About the variable path in win 10

    in Windows 10 Network and Sharing
    About the variable path in win 10: I have deleted my all of the variable path in my pc and not able to run commands in CMD as well as powershell so is there any path to set again or recover those variable path......
  4. Environmental variable/path

    in Windows 10 Installation and Upgrade
    Environmental variable/path: Hello community, I need some help. I was attempting to download Oracle JDK/JRE and somehow corrupted my path. Can anyone tell me the default path setting that I need to restore? I appreciate your help....
  5. Path length limit

    in Windows 10 Installation and Upgrade
    Path length limit: I want to install Python. Should I disable the path length limit? Are there any negatives to doing so? https://answers.microsoft.com/en-us/windows/forum/all/path-length-limit/412d48cd-7ddf-435a-9935-cf51af16f8a4
  6. 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.)...
  7. i accidently deleted system environment variable path

    in Windows 10 Support
    i accidently deleted system environment variable path: i accidently deleted the system environment variable path value now i cant run my java or while typing javac in CMD itit shows javac is not recognized as an internal or external command, operable program or batch file." please tell how do i get the real path 70122
  8. 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
  9. Is there a universal variable for the path to a program

    in Windows 10 Support
    Is there a universal variable for the path to a program: I have noticed on several occasions that during the installation of a program downloaded from the internet that there was some sort of variable in the path to the installation folder I would just accept the default and the installation went OK. I assumed that the variable...
  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...