How to configure button bar button to run as administrator

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DRP535
Senior Member
Senior Member
Posts: 301
Joined: 2003-03-03, 11:25 UTC

How to configure button bar button to run as administrator

Post by *DRP535 »

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?
User avatar
sidefx88
Senior Member
Senior Member
Posts: 294
Joined: 2007-04-11, 17:07 UTC
Location: Argentina

Post by *sidefx88 »

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:

Code: Select all

runas.exe /savecred /user:administrator "C:\Dir\Dir\file.exe"
I Love Total Commander!
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

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
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Another way is right click the button and select As Administrator from the context menu.
Post Reply