In light of using this with the command
Code: Select all
*%comspec%
COMMANDER_PATH to this elevated command prompt. Currently, it only does so with non-elevated command prompts, unless TC itself is run as Administrator (which I prefer not to do).
Moderators: white, Hacker, petermad, Stefan2
Code: Select all
*%comspec%
Code: Select all
Command: *%COMSPEC% /k "set "COMMANDER_DRIVE=%COMMANDER_DRIVE%" & set "COMMANDER_PATH=%COMMANDER_PATH%"
Parameters: & cd /d %P & set commander"
Code: Select all
[em_saveenvironment]
cmd=%COMSPEC% /C set COMMANDER_ > %TEMP%\environment.tmp
iconic=1
[em_openenvironment]
cmd=*%COMSPEC% /C (for /F %i in (%TEMP%\environment.tmp) do set %i)
param=&& Start /D"%P"
Code: Select all
TOTALCMD#BAR#DATA
em_saveenvironment,cm_wait 100,em_openenvironment
%COMSPEC%
Command Prompt as Administrator (with transferred environment)
-1
To make the button:
1. Mark the green text above (including TOTALCMD#BAR#DATA in the first line and -1 in the last line).
2. Copy it to the ClipBoard (Ctri+C).
3. Right click on TC's buttonbar and choose "Paste".