255 character max file path limit?

Have a suggestion for "Everything"? Please post it here.
Post Reply
obvious
Posts: 3
Joined: Sun Aug 10, 2014 1:18 pm

255 character max file path limit?

Post by obvious »

Hi, newbie here /waves

I've noticed that Everything seems to ignore the delete key if the file path length is too long. I understand this limit no longer necessarily exists. Something to do with unicode?

Hopefully that's not just a problem with my setup (windows 7 x64)

I guess the suggestion is implied in the problem.

Cheers
Paul

EDIT: DOH - Perhaps this should be in bug reports
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: 255 character max file path limit?

Post by therube »

> Everything seems to ignore the delete key if the file path length is too long

True.
Also you cannot open the Path.

Windows Explorer does work around the issue.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: 255 character max file path limit?

Post by void »

Everything uses SHFileOperation to delete files.
SHFileOperation is limited to 260 characters.

What Everything should do for a future release is check if SHFileOperation fails and try DeleteFile/RemoveDirectory...
I've added this to my "Things to do" list.
obvious
Posts: 3
Joined: Sun Aug 10, 2014 1:18 pm

Re: 255 character max file path limit?

Post by obvious »

void wrote:Everything uses SHFileOperation to delete files.
SHFileOperation is limited to 260 characters.

What Everything should do for a future release is check if SHFileOperation fails and try DeleteFile/RemoveDirectory...
I've added this to my "Things to do" list.
As therube says, it affects 'open path' as well, possibly other operations. On mobile so can't check at the moment.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: 255 character max file path limit?

Post by void »

Open path is limited to 260 characters. This is a limit with Windows Explorer.

Changing the open path command to $exec($parent("%1")) helps a bit, but the 260 character limit still exists.

Please try changing the open path command to open explorer with no parameters:
  • In Everything, from the Tools menu, click Options.
  • Click the Context Menu tab.
  • Select Open Path.
  • Change the Command to:

    Code: Select all

    $exec($parent("%1"))
  • Click OK.
Note: Windows Explorer will not select the file selected in Everything with this command.

Everything uses SHFileOperation to rename files, but if it fails Everything uses MoveFileEx which works with up to 32000 characters.

Open files or folders with really long filenames will not work either. This is a limitation with ShellExecuteEx (The Windows API call to execute files/folders that Everything uses).
obvious
Posts: 3
Joined: Sun Aug 10, 2014 1:18 pm

Re: 255 character max file path limit?

Post by obvious »

void wrote:Open path is limited to 260 characters. This is a limit with Windows Explorer.

Changing the open path command to $exec($parent("%1")) helps a bit, but the 260 character limit still exists.

Please try changing the open path command to open explorer with no parameters:
  • In Everything, from the Tools menu, click Options.
  • Click the Context Menu tab.
  • Select Open Path.
  • Change the Command to:

    Code: Select all

    $exec($parent("%1"))
  • Click OK.
Note: Windows Explorer will not select the file selected in Everything with this command.

Everything uses SHFileOperation to rename files, but if it fails Everything uses MoveFileEx which works with up to 32000 characters.

Open files or folders with really long filenames will not work either. This is a limitation with ShellExecuteEx (The Windows API call to execute files/folders that Everything uses).
With the change, Open Path works on a test case. Thanks
Post Reply