Hello
I searched the offline help file, this forum, and Google, but didn't find the answer.
I took the opportunity of moving from XP to Windows7 to also upgrade TC to 8.01.
I sometimes need to edit files that are located in directories that require Administrator rights, but TC's "Open commande prompt window" opens a DOS box with only User rights.
Can TC be configured to always open a DOS box with Administrator rights instead?
Thank you.
[SOLVED] [8.01] "Open command prompt" as Administr
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 51
- Joined: 2010-03-24, 10:51 UTC
[SOLVED] [8.01] "Open command prompt" as Administr
Last edited by yetanotherlogin on 2013-11-18, 17:33 UTC, edited 1 time in total.
How to "Open command prompt" as Administrator!
Hello, yetanotherlogin.
On the one hand, there is no way of reconfiguring the menu item "Open command prompt". But on the other hand it is pretty trivial to create a fork of this item in the buttonbar that does what you want.Copy the complete code above into the clipboard and paste it into the Total Commander buttonbar. It will create a new button which will launch cmd.exe in elevated mode.
The crucial detail is the asterisk prefixed to the commandline.
Kind regards,
Karl
On the one hand, there is no way of reconfiguring the menu item "Open command prompt". But on the other hand it is pretty trivial to create a fork of this item in the buttonbar that does what you want.
Code: Select all
TOTALCMD#BAR#DATA
*%SystemRoot%\system32\cmd.exe
%COMMANDER_PATH%\TOTALCMD.EXE,2
Admin Prompt
0
-1
The crucial detail is the asterisk prefixed to the commandline.
Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
It is good to set then this text for parameters field:
Code: Select all
/K CD /D "%P"
-
- Junior Member
- Posts: 51
- Joined: 2010-03-24, 10:51 UTC
Thanks much for the infos.
For other newbies like me: After displaying the button bar (Configuration > Options), copy the text below, right-click on the button bar, and choose Paste. It will trigger TC to open a new but invisible icon. Right-click on it and choose "Change" to assign an icon and fill the Parameters line.
For other newbies like me: After displaying the button bar (Configuration > Options), copy the text below, right-click on the button bar, and choose Paste. It will trigger TC to open a new but invisible icon. Right-click on it and choose "Change" to assign an icon and fill the Parameters line.
yetanotherlogin,
It was already discussed, TC doesn't trim trailing spaces from lines so it can't find icon. E.g. Opera copies text from pages with trailing spaces. Please check this topic (and maybe post there).
It was already discussed, TC doesn't trim trailing spaces from lines so it can't find icon. E.g. Opera copies text from pages with trailing spaces. Please check this topic (and maybe post there).