Ctrl-Shift-G

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
cheming
Member
Member
Posts: 154
Joined: 2004-05-07, 14:38 UTC
Location: China

Ctrl-Shift-G

Post by *cheming »

please add a shortcut: Ctrl-Shift-G running cmd.exe as administror.
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Hello,

- Make a shortcut to your cmd.exe (CTRL+SHIFT+F5) - usually it is located at C:\Windows\system32\cmd.exe
- Right click in the new shortcut > Options > Avanced options > Check run as administrator.
- Make a new extended command (cm_CommandBrowser) > usercmd.ini > New...
- In command field put the path to the new shortcut.
- In configuration > options > Misc. Redefine a hotkey for the new extended command.
I can read English, but... I write like Tarzan. (sorry)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Sombra wrote:- Right click in the new shortcut > Options > Avanced options > Check run as administrator.
Please note that that tab changes global compatibility options for CMD.exe and not only for created link file.

But it is possible to use my Sudo.exe tool for this task as I use it: command Sudo.exe with parameter CMD.exe.

Also if you create BAT file you will have possibility to setup compatibility options just for that BAT file.
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Hello MVV,
Please note that that tab changes global compatibility options for CMD.exe and not only for created link file.
hmmm... I can't get the behavior described by you. If I run cmd.EXE, then it is opened as a normal user and if I launch "CMDasAdmin.LNK" it is launched as administrator (with the corresponding elevation prompt).
This was done/tested under W7 Home premium.
I can read English, but... I write like Tarzan. (sorry)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Sombra wrote:Hello MVV,
Please note that that tab changes global compatibility options for CMD.exe and not only for created link file.
hmmm... I can't get the behavior described by you. If I run cmd.EXE, then it is opened as a normal user and if I launch "CMDasAdmin.LNK" it is launched as administrator (with the corresponding elevation prompt).
This was done/tested under W7 Home premium.
Hmmm... Perhaps MS changed this thing, in XP compatibility properties are common for file and all its links and stored in special registry key.
Anyway, thing will work if you create bat-file and set compatibility options for it.
Last edited by MVV on 2009-12-16, 05:56 UTC, edited 1 time in total.
cheming
Member
Member
Posts: 154
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

Sudo.exe doesn't know %COMMANDER_PATH% :-(
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

cheming wrote:Sudo.exe doesn't know %COMMANDER_PATH% :-(
Workaround is here.
cheming
Member
Member
Posts: 154
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

I defined a user cmd: em_Sudo and used it in a button but I found it didn't work, why?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

cheming wrote:I defined a user cmd: em_Sudo and used it in a button but I found it didn't work, why?
Oops... How do you get COMMANDER_PATH if you use em_sudo? What command and parameters did you specified for it? I don't think out how em_sudo may be better than just button with command sudo.exe <command> - it doesn't allow you to enter parameters. If you want to run file under cursor, you need to create em_sudo with command sudo.exe and parameter %P%N. How do you want to use your em_sudo?
Post Reply