New
#1
Welcome to the forum how long is your path as there is a limit which you can change https://www.howtogeek.com/266621/how...60-characters/
Enable or Disable Win32 Long Paths in Windows 10
As you can see from the screenshot, about 50-60 characters. I just added the directory C:\WBIN to the default path.
I sincerely hope that we can have more than a few dozen characters in the path.
And here is another screenshot, which shows how the path is represented in the environmen variable editing window:
At least to me, it looks reasonable. But when I open a CMD console, the Path looks like this:
The maximum length of a file path in Windows is normally 260 characters but the path environment variable is something quite different. In Windows 7 and later it's maximum length is 4095 characters. Prior to Windows 7 it was 2047 characters. Software used to manipulate this variable may impose a lower limit. I don't know the maximum for the dialog box but it is certainly more than 60 characters.
In my browser the URL shown in post #2 shows "..60 characters" but if you go to the article it shows 260. This is due to the displayed URL being shortened by the browser. But as mentioned previously this is not a limit on the environment variable.
Have you done a log off - login cycle after changing the environment variable?
When a process starts it normally inherits it's environment variables from the parent process. Typically this will be the explorer.exe process and it will only see updated environment variables when it starts
I don't know if it still apply to Win 10 but on a cmd window
Path shows the current path variable
Path= sets new path variable
Path=%path%; xxxx adds xxxx to current path variable
Those commands work the same as they always have.
But be aware that they only apply to the current cmd session. Each process has their own private copy of the environment variables which are modified independently of others. When the cmd window closes the changes are lost. To make permanent changes you must use the setx command or the dialog mentioned box previously.
Yes, no change, though in this case, it should not matter. Whenever I open a new command Window, I do get a new CMD console Window, and it should use the actual environment settings. No logoff needed.
When working with Windows 7, my PATH variable was set to a string of about 300 characters. It would be ridiculous, if this were not possible in Windows 10 too.