[Rejected] "Error executing program (31)" for long paths

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

[Rejected] "Error executing program (31)" for long paths

Post by *mmm »

Hello,
Recently I've stumbled over the following error message:

"Error executing program (31)"
"No application is associated with the specified file for this operation."

Having investigated the issue real quick I am leaning toward the conclusion that the message is generated when the full path to the target file exceeds a maximum limit.

If that is true, then I find the existing wording a tad misleading.


Environment:
Windows 10
TC(x64) 10.0

Best,
mmm
Last edited by mmm on 2022-06-23, 08:57 UTC, edited 1 time in total.
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: "Error executing program (31)" for long paths

Post by *Stefan2 »

Please check that out first

viewtopic.php?t=42890
https://ghisler.ch/board/viewtopic.php?t=75749


More issues via google: "Error executing program (31)" site:ghisler.ch



Maybe you spot something common...
 
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: "Error executing program (31)" for long paths

Post by *mmm »

The length of full path that triggers the error message with problematic wording is 259 chars.

Full path = path + filename + extension // including white space

On a side note:
TC nicely detects the very same limit when copying files. For full paths that exceed 259 char, a “Keep Name” dialog pops-up.
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: "Error executing program (31)" for long paths

Post by *mmm »

The aim of this report is to find out whether this issue is replicable.
If yes, I would be interested to learn whether TC development team has capacity to improve the error message.
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: "Error executing program (31)" for long paths

Post by *mmm »

May I ask for assessment results of the problematic error message reported above?

Rejected/Not worth updating the message/To be implemented - low priority ... or similar will suffice.

Many thanks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "Error executing program (31)" for long paths

Post by *ghisler(Author) »

There is a limit of MAX_PATH-1 (259) characters allowed in a path when opening programs and/or files. You need to shorten one of the directory names in the path.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: "Error executing program (31)" for long paths

Post by *white »

ghisler(Author) wrote: 2022-04-20, 16:16 UTC There is a limit of MAX_PATH-1 (259) characters allowed in a path when opening programs and/or files. You need to shorten one of the directory names in the path.
That was clear to the topic poster. He suggested a better error message if the path is longer and asked for a response like "Rejected/Not worth updating the message/To be implemented - low priority".
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "Error executing program (31)" for long paths

Post by *ghisler(Author) »

Well, that's the error I'm getting back from Windows. It's still possible that there is no association even when the path is too long.
Author of Total Commander
https://www.ghisler.com
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: "Error executing program (31)" for long paths

Post by *mmm »

First off, thank you so very much for your follow-up comments. Glad you did not ditch my enhancement request (yet).

Now, the root cause of the problem is clear.
A pertinent question arises as to whether TC has capacity to tell a long path from missing association.
The "Keep names" dialog when copying files located under extreme paths might indicate that the detection of an extreme path might be feasible but I can only speculate.

--

I assume that long paths are rare on personal laptops. When it comes to corporate machines, my experience is that it happens quite frequently.

When you got the error message for the first time, you are likely to spend quite a bit of time until you reach conclusion that there is no issue with the associated application and the problem lies elsewhere.
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: "Error executing program (31)" for long paths

Post by *mmm »

Would one of those muscle moderators do me a favor and move this thread to the "TC suggestions (English)" forum ?
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: "Error executing program (31)" for long paths

Post by *Stefan2 »

mmm wrote: 2022-06-22, 07:31 UTC Would one of those muscle moderators do me a favor and move this thread to the "TC suggestions (English)" forum ?
Why?
What/where is the suggestion?
(sorry, may be my fault not seeing it)

Best create a new thread in "suggestions" yourself with a meaningful subject line
and clear described suggestion in first post and add there a link to this discussion.





 
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: "Error executing program (31)" for long paths

Post by *mmm »

Moved to TC suggestions:
viewtopic.php?t=77037

Rejected by the Author.
Post Reply