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 » Sun Aug 10, 2014 1:26 pm

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: 2352
Joined: Thu Sep 03, 2009 6:48 pm

Re: 255 character max file path limit?

Post by therube » Sun Aug 10, 2014 5:13 pm

> 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
Site Admin
Posts: 4933
Joined: Fri Oct 16, 2009 11:31 pm

Re: 255 character max file path limit?

Post by void » Mon Aug 11, 2014 1:11 am

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 » Mon Aug 11, 2014 8:27 am

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
Site Admin
Posts: 4933
Joined: Fri Oct 16, 2009 11:31 pm

Re: 255 character max file path limit?

Post by void » Mon Aug 11, 2014 12:12 pm

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 » Tue Aug 12, 2014 10:18 am

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