Opening app as Admin

English support forum

Moderators: white, Hacker, petermad, Stefan2

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

Opening app as Admin

Post by *wanderer »

I have a button in TC's toolbar for command prompt. When i rightclick on it, there is no way to open it "as admin". Is there an option somewhere to achieve that (for all app buttons). If not, i would like for it to be added as a wish.
- 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
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Opening app as Admin

Post by *Stefan2 »

wanderer wrote: 2021-04-21, 09:14 UTC ...When i rightclick on it, there is no way to open it "as admin". ...

That works for me. (win10 and TC10)

Total Commander 7.56 beta 1
04.11.10 Added: Button bar right click menu: Menu item "As Administrator" for running the program of that button with admin rights


- - -



F1 > Help > search for "button"

> go to "Dialog box: Configuration - Change button bar"

Command:
1.
. . .. .
.. . . . Put an asterisk '*' in front of the name to start it with administrative rights,
or two '**' to start is as a different user . . . .
. . . .


17.11.10 Release Total Commander 7.56 beta 2
17.11.10 Added: Button bar: Begin command with a '*' followed by a full path or env. variable to always start the program with admin rights


- - -


Google: command as admin site:ghisler.ch

> https://ghisler.ch/board/viewtopic.php?p=219760#p219760
> viewtopic.php?p=339093#p339093
> https://ghisler.ch/board/viewtopic.php?p=257747#p257747
> viewtopic.php?p=274270#p274270
> https://ghisler.ch/board/viewtopic.php?p=313390#p313390




HTH? :D  
User avatar
wanderer
Power Member
Power Member
Posts: 1575
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Opening app as Admin

Post by *wanderer »

Great, thanks for the info. This requires a separate button though if you wish to execute it at a time as you and at another time as admin. It would be better if in such cases (external apps), there was an additional entry in the context menu ("As Admin").

EDIT: This doesn't seem to work with cm_ExecuteDOS...
- 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
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Opening app as Admin

Post by *Stefan2 »

I had already modified my post and added the info to "run as admin" in context menu.



For your button use
*cmd /c
or
*%comspec% /c
instead of the internal CM_ command



 
Post Reply