Length of Path in Windows

Solved
ledanois Posted messages 266 Status Member -  
 babsoni -
Hello everyone,

I have a little problem:
It seems that in Windows, when creating a file in a folder, the maximum path length is 256 characters.
I would like to know if we can change this value?

Thank you for your answers
--
Lao Tzu said:
"When it rains in summer, the roads are wet"

4 answers

  1. babsoni
     
    1. Right-click on "Computer" (or "This PC")
    2. Click on the "Advanced" tab
    3. Click on "Environment Variables"
    4. In the lower section titled "System variables," click "New" to create a new system variable
    5. Give a new name that doesn't exist in the list, e.g., "extendpath"
    6. In the value field, cut the value of the PATH variable and paste it. (It's as if you just duplicated the PATH)
    7. In the value of the PATH variable, put %extendpath%
    8. Click OK, OK, OK
    9. To verify it works, open the command prompt (cmd) and type echo %extendpath% and echo %path%. You will see that both environment variables have the same content, but the Path has (length(%extendpath%) which is 12 characters, not 255, and you're done.
    2
  2. ledanois Posted messages 266 Status Member 19
     
    I am indeed in NTFS
    --
    Lao Tzu said:
    "When it rains in summer, the roads are wet"
    0
    1. dje-dje Posted messages 10538 Registration date   Status Moderator Last intervention   759
       
      Well, we will have to find shorter names for the files...
      According to this:
      https://en.wikipedia.org/wiki/NTFS
      We have reached the maximum number of characters for the file... I don't think it's circumventable.
      --
      See you later
      dje-dje
      There are 10 types of people in the world Those who understand binary and the others
      0
  3. ledanois Posted messages 266 Status Member 19
     
    Thank you for everything dje-dje
    --
    Lao Tzu said:
    "When it rains in summer, the roads are wet"
    0
  4. dje-dje Posted messages 10538 Registration date   Status Moderator Last intervention   759
     
    You're in Fat32 or NTFS?
    If you're in Fat32 try to convert your drive to NTFS.
    Otherwise, I don't really see what you can do... These are the limits of the file system
    --
    a+
    dje-dje
    There are 10 types of people in the world Those who understand binary and others
    -1