Whilst trying to edit a text file I came across a windows problem I hadn’t seen before, – The file name is too long. It took me a while to figure out what to do as I couldn’t open or rename the file.
Eventually I edited the names of the folders it was in (the files path) so they weren’t so long. I was then able to rename or open the file as normal.
It turns out that the whole path of the file is important and limited, not just the filename itself.
In short if you have something like:
C:\A really long folder name\Followed by another really long folder name\Followed by another long folder name\this file cannot be edited because the whole path is far too long.txt
Then you will not be able to open or rename the file. You have to shorten the folders below it:
C:\Much\shorter\Path\I can now edit this file as the whole path is short enough – phew.txt
Bit of an annoying error that one.
Popularity: 1% [?]
Related posts:











July 29th, 2009 → 2:32 pm @ Jonny
0