TC756: F4=file not found (cannot locate nodepad.exe)

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

TC756: F4=file not found (cannot locate nodepad.exe)

Post by *wanderer »

Tests performed under Win2K8 server 64bit.

When F4 is pressed, a "file not found" message appears. Editor is the default "notepad.exe". If the editor is set to "%SystemRoot%\system32\notepad.exe", it works just fine.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Total Commander expects notepad.exe in Windows directory now if no path is given, as it is in all consumer versions of Windows. Why? When I just give "notepad.exe" to the launch function, it would launch the program from the current directory if there is one there. This Windows security hole was one of the main reasons for the 7.56 release.

Maybe you have a better idea how to find notepad when it's not in the default location?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

By default notepad.exe is in:
Windows XP 32-bit: Windows\notepad.exe
Windows 7 32-bit: Windows\notepad.exe
Windows 7 64-bit: Windows\notepad.exe (64-bit EXE)

So it is normal to start notepad.exe always from Windows directory. User always can change editor path if he has editor in non-standard place.
Last edited by MVV on 2010-12-02, 11:36 UTC, edited 1 time in total.
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

ghisler(Author) wrote:Total Commander expects notepad.exe in Windows directory now if no path is given, as it is in all consumer versions of Windows.
Not all versions. In windows2008 64bit server (plain and R2), notepad.exe is in system32 by default (the same exe also appears in syswow64, i'm not sure if there's any difference)
ghisler(Author) wrote:Maybe you have a better idea how to find notepad when it's not in the default location?
Search for in system dir (system32) too.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

wanderer wrote:the same exe also appears in syswow64, i'm not sure if there's any difference
System32 folder contains 64-bit EXE while SysWow64 contains 32-bit one. But because of dumb x64 redirection you see that theese folders are equal.
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

MVV wrote:
wanderer wrote:the same exe also appears in syswow64, i'm not sure if there's any difference
System32 folder contains 64-bit EXE while SysWow64 contains 32-bit one. But because of redirection you see that theese folders are equal.
Yes, it's the very clear way MS has implemented this "feature". I wonder what will happen if after 20 years they decide to move to 128 bit. Will they add a system16 folder and put 128bit files in it? :shock: :D Thanks for the clarification anyway.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
karlchen
Power Member
Power Member
Posts: 4601
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

The problem has been solved in T.C. 7.56a. :)

Testing environment:
+ Windows Server 2008 R2 (64-bit)
+ Total Commander 7.56.a

Editor setting: Editor=notepad.exe

Using <F4> to edit a text file works fine again. - Case closed.

Kind regards,
Karl
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

karlchen wrote:The problem has been solved in T.C. 7.56a. :)
Indeed. Confirmed also under 2K8 (not R2) 64-bit. Thanks for reminding Karl. :)
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks!
Author of Total Commander
https://www.ghisler.com
cangia
Junior Member
Junior Member
Posts: 5
Joined: 2011-02-10, 14:44 UTC

For me still doesnt work

Post by *cangia »

wanderer wrote:
karlchen wrote:The problem has been solved in T.C. 7.56a. :)
Indeed. Confirmed also under 2K8 (not R2) 64-bit. Thanks for reminding Karl. :)
I've Windows 7 64 bit, TC 7.56a.
Same problem, not able to call editor with F4, no notepad, no other editor.
Editing manually wincmd.ini with quotes, double quotes double double quotes ecc. but it doesn't work always "file not found" message.
User avatar
karlchen
Power Member
Power Member
Posts: 4601
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, cangia.

The original bug, TC756: F4=file not found (cannot locate nodepad.exe), has definitely been fixed in T.C. 7.56a. And the original bug only affected Notepad.exe, not any other editor like Notepad2, Notepad++, PsPad etc pp.

Therefore, I wonder whether the symptoms that you see are related to the other bug report which you posted here: Change settings file directly: Not enough memory.
After all "Change settings files directly" calls Notepad and opens wincmd.ini and wcx_ftp.ini. This, as you report, gives a "Not enough memory" error.

Kind regards,
Karl
cangia
Junior Member
Junior Member
Posts: 5
Joined: 2011-02-10, 14:44 UTC

Post by *cangia »

I've found my problem....
I've Textpad editor.
It has one option "Replace notepad" and in my case that was checked.
Now i'unchecked it and all works F4 and no more error "Not enough memory".
Thank's sorry to take your time.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - it would be nice if you could complain to the Textpad author!
Author of Total Commander
https://www.ghisler.com
Post Reply