How do you configure ConEmu to run cmd.exe as an Administrator from an Explorer integration?

30

4

I am trying to add a ConEmu Here - Explorer context menu integration entry for the Visual Studio 2012 command prompt. I want the shortcut to Run as Administrator. I am not sure of the right way to do this in ConEmu.

I am using the following Command (which works but obviously not as Admin):

cmd.exe /k ""C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"" x86

What is the correct way to configure ConEmu to run this as Administrator? If there is not a correct way, how should I adjust the command to make this work?

bentayloruk

Posted 2012-09-05T15:49:32.810

Reputation: 453

Answers

43

Add the following switch at the end of your command

-new_console:a

Maximus

Posted 2012-09-05T15:49:32.810

Reputation: 19 395

This should be on the tooltip or should be a predefined item. – gyozo kudor – 2016-02-22T15:05:20.783

1

It's impossible to integrate full documentation in the tooltip. https://conemu.github.io/en/NewConsole.html#syntax

– Maximus – 2016-02-22T16:47:07.310

-new_console:a would be enough :) – gyozo kudor – 2016-02-23T21:35:21.397