strange 'file not found' error using external editor
Moderators: Hacker, petermad, Stefan2, white
strange 'file not found' error using external editor
Hi all,
It occurs here a very strange error with external editor configuration.
I got my editor in the following path:
E:\Beta1 6.5\AddOn\Textpad\Textpad.exe
When I browse from within TC to this path and select Textpad and then try to use [F4] i got a "File not found" error.
Adding quotatation marks in the wincmd.ini to
editor="E:\Beta1 6.5\AddOn\Textpad\Textpad.exe"
does not help.
Using
editor=%Commander_path%\AddOn\Textpad\Textpad.exe
editor="%Commander_path%\AddOn\Textpad\Textpad.exe"
Does not help neither.
But if I add two quotation marks:
editor=""%Commander_path%\AddOn\Textpad\Textpad.exe""
it works fine.
I did copy the whole installation to all of my drives. Then I found out that I need the double quotation marks only on drive C:\ and E:\ and with another XP-Installation only on E:\. On all other drives the editor works without any quotation marks.
I'm using mostly FAT32, but on one drive NTFS (it's my L:\).
Does anyone have an idea what could cause such strange behavior?
BTW: I did check that each installation started with it's own wincmd.ini and the correct path.
sheepdog
It occurs here a very strange error with external editor configuration.
I got my editor in the following path:
E:\Beta1 6.5\AddOn\Textpad\Textpad.exe
When I browse from within TC to this path and select Textpad and then try to use [F4] i got a "File not found" error.
Adding quotatation marks in the wincmd.ini to
editor="E:\Beta1 6.5\AddOn\Textpad\Textpad.exe"
does not help.
Using
editor=%Commander_path%\AddOn\Textpad\Textpad.exe
editor="%Commander_path%\AddOn\Textpad\Textpad.exe"
Does not help neither.
But if I add two quotation marks:
editor=""%Commander_path%\AddOn\Textpad\Textpad.exe""
it works fine.
I did copy the whole installation to all of my drives. Then I found out that I need the double quotation marks only on drive C:\ and E:\ and with another XP-Installation only on E:\. On all other drives the editor works without any quotation marks.
I'm using mostly FAT32, but on one drive NTFS (it's my L:\).
Does anyone have an idea what could cause such strange behavior?
BTW: I did check that each installation started with it's own wincmd.ini and the correct path.
sheepdog
Last edited by Sheepdog on 2005-02-14, 23:04 UTC, edited 2 times in total.
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
The dot--- ??
2Sheepdog
Hi Stefan !
- I avoid always this kind of name, I use rather a dash “ - ”…
- Just an idea.
VG
Claude
Clo

- What about the dot in the dir-name ?editor="E:\Beta1 6.5\AddOn\Textpad\Textpad.exe"
- I avoid always this kind of name, I use rather a dash “ - ”…
- Just an idea.

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Re: The dot--- ??
I guess it is something with the number space number that makes the trouble.Clo wrote:- What about the dot in the dir-name ?
Neverthless I do not understand why TC loads the editor if the path is enclosed into two pairs of quotation marks while he refuses with only one.
And more strange: Why does TC load the editor on some drives with the same name of the folder?
puzzled
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Old habit---
2Sheepdog
• Like I told you ages ago, we resigned XP under FAT32 @home, because some behaviours in the same painting…
- I avoid both space(s) and dot(s) in the path and the filename, an old habit from DOS / 3.1
- What does happen if you rename the folders like this (I mean : without space and dot) ?
VG
Claude
Clo
• Like I told you ages ago, we resigned XP under FAT32 @home, because some behaviours in the same painting…
- I avoid both space(s) and dot(s) in the path and the filename, an old habit from DOS / 3.1

- What does happen if you rename the folders like this (I mean : without space and dot) ?

Claude
Clo
Last edited by Clo on 2005-02-13, 05:00 UTC, edited 1 time in total.
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Re: Old habit---
The editor is loaded. But that's not the point.Clo wrote:- What does happens if you rename the folders like this (I mean : without space and dot) ?
I don't want to find a way how it works ( I already know: Two Pairs of quotation marks).
I just want to find out why it does not work with the given configuration.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
I suggest using Process Explorer and checking the command line of the external editor after calling it with the double quotation marks on the "strange" drives and one time without on the "normal" drives, maybe this helps finding the solution:
http://www.sysinternals.com/ntw2k/freeware/procexp.shtml
It really sounds strange, honestly...
Icfu
http://www.sysinternals.com/ntw2k/freeware/procexp.shtml
It really sounds strange, honestly...

Icfu
This account is for sale
I found the reason. The root directory contained a file "beta1".
Apparently prevents it TC from parsing the correct path unless you use two pairs of quotation marks.
sheepdog
Apparently prevents it TC from parsing the correct path unless you use two pairs of quotation marks.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Type w/o ext.
2Sheepdog
Hi Stefan !
¤ Files without extension cause bad jokes, specially when having the same name than a directory
- I created a file-type for that, with a visible icon, that could help, so files and dirs are distinguished one other.
¤ Something to add in the documents
V G
Claude
Clo

¤ Files without extension cause bad jokes, specially when having the same name than a directory

- I created a file-type for that, with a visible icon, that could help, so files and dirs are distinguished one other.
¤ Something to add in the documents


Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Re: Type w/o ext.
You can't have a file with the same name as a directory in the same path. But I tested it and it happens too if there were no file beta1 but a directory.Clo wrote:¤ Files without extension cause bad jokes, specially when having the same name than a directory![]()
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Try this:editor="E:\Beta1 6.5\AddOn\Textpad\Textpad.exe"
does not help.
editor=""E:\Beta1 6.5\AddOn\Textpad\Textpad.exe""
Why? The loading of the string with the ini file functions will remove the outer double quotes, but TC still needs double quotes arount the name in the command line, otherwise Windows will look for a program called E:\Beta1 and pass the rest of it as parameters...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I had found this solution already and mentioned it in my first post. But mixed up some bbcode so it was not in blue like the others and you did not notice it.
Sorry for that, I corrected it now.
sheepdog
Sorry for that, I corrected it now.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams