F4: Akelpad.exe with admin rights -> File not found

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

F4: Akelpad.exe with admin rights -> File not found

Post by *DrShark »

I'm not posting this in bug reports forum yet because maybe it is intentional.

On 32-bit Vista I have installed Akelpad 4.5.6 (x86) in following path:
c:\totalcmd\AkelPad\AkelPad.exe
In AkelPad.exe file properties I enabled option to start it as administrator
Total Commander is started not elevated.
In Total Commander "Configuration->Edit/View" there is the "Editor for F4" line:
C:\totalcmd\AkelPad\AkelPad.exe "%1"
When trying to use F4 on file, I get an error:

Code: Select all

---------------------------
Total Commander
---------------------------
File not found!

C:\totalcmd\AkelPad\AkelPad.exe 
---------------------------
ОК   
---------------------------
and Akelpad doesn't start.

Notes:
1) the button:

Code: Select all

TOTALCMD#BAR#DATA
C:\totalcmd\AkelPad\AkelPad.exe
"%P%N"
C:\totalcmd\AkelPad\AkelPad.exe

C:\totalcmd\AkelPad\

-1
still works.
2) the command from TC command line:
C:\totalcmd\AkelPad\AkelPad.exe c:\totalcmd\AkelPad\AkelPad.ini
still works.
3) There's a workaround to make Akelpad.exe with "As administrator" property enabled to work as F4 editor, athough with a limitation. Editor line should be following in TC options:
elevate C:\totalcmd\AkelPad\AkelPad.exe "%1"
(requires "Elevation PowerToys for Windows Vista" installed).
The limitation, and it doesn't depend on akelpad.exe "as administrator" property, is that after calling F4 on file inside archive it gives an error like this one:

Code: Select all

---------------------------
AkelPad
---------------------------
Create new file "C:\Users\VMASKE~1\AppData\Local\Temp\_tc\ReadMe.rus"?
---------------------------
ОК   Отмена   
---------------------------
3) Unchecking the option "As adimistrator" in AkelPad.exe properties makes Akelpad to correctly open files, including archived, with following line as F4 editor:
C:\totalcmd\AkelPad\AkelPad.exe "%1"
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Its a strange idea to start an editor by default with enhanced rights.
As Vista user you should know that low priviledged programs can't communicate with processes running with higher levels.

So stop running anything as admin and all is fine.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, F4 does not currently support launching programs with higher user rights.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: F4: Akelpad.exe with admin rights -> File not found

Post by *DrShark »

DrShark wrote:There's a workaround to make Akelpad.exe with "As administrator" property enabled to work as F4 editor, athough with a limitation ...
(requires "Elevation PowerToys for Windows Vista" installed).
The native workaround it to set following line as "Editor for F4" in TC config dialog:
cmd /c "start C:\totalcmd\AkelPad\AkelPad.exe %1"
This will sometimes even open in the editor the files from archives, although in this case TC won't pack back to archive the file changed and saved in the editor.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

One can use e.g. my Sudo tool for starting editor as admin.

I'm using F4Menu tool as default TC editor, and I have configured special editor called F4Menu ^ in it, which restarts the tool as administrator so I can open focused file in any configured editor as administrator.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Sorry, F4 does not currently support launching programs with higher user rights.
As mentioned in this post, there are no plans to add this...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply