Opening app as Admin
Moderators: Hacker, petermad, Stefan2, white
Opening app as Admin
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 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: Opening app as Admin
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?

Re: Opening app as Admin
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...
EDIT: This doesn't seem to work with cm_ExecuteDOS...
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: Opening app as Admin
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
For your button use
*cmd /c
or
*%comspec% /c
instead of the internal CM_ command