[Rejected] "Error executing program (31)" for long paths
Moderators: Hacker, petermad, Stefan2, white
[Rejected] "Error executing program (31)" for long paths
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
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.
Re: "Error executing program (31)" for long paths
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...
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...
Re: "Error executing program (31)" for long paths
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.
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.
Re: "Error executing program (31)" for long paths
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.
If yes, I would be interested to learn whether TC development team has capacity to improve the error message.
Re: "Error executing program (31)" for long paths
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.
Rejected/Not worth updating the message/To be implemented - low priority ... or similar will suffice.
Many thanks.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: "Error executing program (31)" for long paths
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
https://www.ghisler.com
Re: "Error executing program (31)" for long paths
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".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.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: "Error executing program (31)" for long paths
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
https://www.ghisler.com
Re: "Error executing program (31)" for long paths
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.
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.
Re: "Error executing program (31)" for long paths
Would one of those muscle moderators do me a favor and move this thread to the "TC suggestions (English)" forum ?
Re: "Error executing program (31)" for long paths
Why?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 ?
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.