How to configure button bar button to run as administrator
Moderators: white, Hacker, petermad, Stefan2
How to configure button bar button to run as administrator
Pretty much as per the subject line. I have a program I need to run as administrator. Currently I have the button bar pointing to a shortcut link which is configured to run the executable as administrator. Is there are way of configuring the button bar in TC directly to start the executable as administrator and thus bypass the shortcut link?
There's no "native" TC way to do that.
But you can use a BAT file as intermediate between the button bar and the exe file you need to run as admin, containing this:
But you can use a BAT file as intermediate between the button bar and the exe file you need to run as admin, containing this:
Code: Select all
runas.exe /savecred /user:administrator "C:\Dir\Dir\file.exe"
I Love Total Commander!
2DRP535
Help, Dialog box: Configuration - Change button bar
"....Put an asterisk '*' in front of the name to start it with administrative rights, or two '**' to start is as a different user (Windows Vista or newer)."
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64