Open long path/ file name error since 7.5.9
-
When a path + file name is very long (don’t know exactly when it starts to happen) I am unable to open the file by double clicking on it. NPP tells me the file is not present and asks if it shall be craeted.
When RMB on the file and say open with NPP it works fine.
When I open NPP w/o a file opened and drag and drop the file into the NPP windows it works fine too.
WIndows 10 x64
Any idea?
-
I have exactly the same problem with long file names on Windows 7 x64 (using 32-bit version of Notepad++ 7.6).
I’ve tried to remove blank spaces between file name chars to no avail yet…
Any help is appreciated!!! -
After some research, I think I found the solution to the problem here: Spaces In Pathnames
This code works for me:
[code]Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*\shell\Open with Notepad++\command]
@="“C:\Notepad++\notepad++.exe” “%1"”[/code] -
As I mentioned in the other topic, this forum uses Markdown, which mangles posted code unless you properly escape it: in Markdown, you escape a code block by indenting every line by 4 chars, not by surrounding with
[code]
tags.To make it easier for @archerarcher1 (and others who read here later), please re-post your quoted registry entry, this time indented by 4 characters, like my example from that previous post,
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\txtfile\shell\Notepad++] @="Notepad++" [HKEY_CLASSES_ROOT\txtfile\shell\Notepad++\command] @="C:\\Program Files (x86)\\Notepad++\\notepad++.exe \"%1\""
so that it renders like
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\txtfile\shell\Notepad++] @="Notepad++" [HKEY_CLASSES_ROOT\txtfile\shell\Notepad++\command] @="C:\\Program Files (x86)\\Notepad++\\notepad++.exe \"%1\""
… so that we can see the exact text you used in your registry, without ambiguity.
-
Thanks, PeterJones!
Yes, I merged the following code in my registry and now v7.6 can open files with long names on different drives. I found the solution here: Spaces In Pathnames
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Open with Notepad++\command] @="\"C:\\Notepad++\\notepad++.exe\" \"%1\""
-
This behavior is a JOKE, isn’t it?
Sorry.
-
Yep, Microsoft was crazy to require you to disambiguate between
program.exe name with space
passing three arguments to program.exe andprogram.exe "name with space"
passing just one argument toprogram.exe
, even when you have the four files “name with space”, “name”, “with”, and “space” all in the same directory, because it should be able to always know exactly what you mean, even when you don’t use the syntax that the OS requires. -
yes definitively a joke, even windows 10 has the same old limit of 255 char path lengths (minus another few characters, depending on local file systems or network drives) and sometimes even more issues if splitted to more than one argument, as many internal executables, like explorer, have a limit on how many arguments you can pass to it.
currently you’d have to get a mac, if you have cases where you just don’t want to live with window’s path length and argument count limits, as even some ubuntu internals are known to produce an overflow from time to time (albeit only at a much larger, rarely achieved dimension).
-
You can use Long Path Tool to solve your problem. It will really help you.
-
I suggest you try Long path tool is the very good
program for easily delete, copy & rename long path
files, error, unlock solution.
Try it and solve your problem.