[TC9.51 RC6] Cannot execute link to editor

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hginzel
New Member
New Member
Posts: 1
Joined: 2020-03-20, 19:42 UTC

[TC9.51 RC6] Cannot execute link to editor

Post by *hginzel »

Create link n.lnk to C:\Windows\notepad.exe in let say C:\Tools.
Set Configuration→Option→Edit/Vew→Editor to C:\Tools\n.lnk "%1".
Try to edit a file (F4).
Total Commander throws message box "File not found! C:\Tools\n.lnk".
Expected behaviour is to execute linked target (with optional arguments contained in the link).
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC9.51 RC6] Cannot execute link to editor

Post by *petermad »

Confirmed
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC9.51 RC6] Cannot execute link to editor

Post by *ghisler(Author) »

Currently it used WinExec, for historical reasons. I could change that to something newer like ShellExecuteEx, but I fear that it would break many configurations, so I prefer to not change it for 9.51. Maybe if you had reported it earlier in the beta test.
Author of Total Commander
https://www.ghisler.com
Post Reply