Run a file as administrator through TC

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Adamach
New Member
New Member
Posts: 1
Joined: 2022-03-04, 08:14 UTC

Run a file as administrator through TC

Post by *Adamach »

This might seem a stupid question, but I was unable to find an answer anywhere.
So, suppose I have an open instance of TC and I want to run certain file through it as administrator. Is there a quick way - like a shortcut - to do it, other than running entire TC as administrator first?
User avatar
nsp
Power Member
Power Member
Posts: 1950
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Run a file as administrator through TC

Post by *nsp »

You can launch an application as an administrator using button, usrer_cmd ... just by adding * in front of your command.

Code: Select all

TOTALCMD#BAR#DATA
*%systemroot%\system32\control.exe
/name Microsoft.WindowsUpdate
wuapi.dll
Windows Update


-1
User avatar
Dalai
Power Member
Power Member
Posts: 10023
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Run a file as administrator through TC

Post by *Dalai »

Well, it depends on which "certain file" you want to run as admin. If it's a file in one of the file lists, you can use the context menu. If the file/command is on a button or in TC's start menu, see nsp's answer above. If it's something else, you need to be more specific.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Re: Run a file as administrator through TC

Post by *Gral »

1. Get ShelExec program from this page - http://www.naughter.com/shelexec.html
2. Put ShelExec.exe in TC directory
3. Make usercmd e.g. (add code to USERCMD.INI)

Code: Select all

[em_shelexec_as_admin]
cmd=*%COMMANDER_PATH%\SHELEXEC.EXE
param=%P%N
button=%COMMANDER_PATH%\SHELEXEC.EXE
menu=ShelExec As Admin
4. Make shortcut for this command (you can also make button on buttonbar)
tcOne
Junior Member
Junior Member
Posts: 28
Joined: 2016-05-13, 00:33 UTC

Re: Run a file as administrator through TC

Post by *tcOne »

Hello,

take a look at the following:
viewtopic.php?p=349707#p349707

Kind regards
Post Reply