3

I have seen How can I open a command prompt in current folder with a keyboard shortcut? and I know these ways like Press Alt+D, type cmd and press Enter Or pressing shift + click open in command prompt but how can I open with administrative privilege?

Edit

Adam's answer is perfect and, along with that, I also found a shell extension which can do that called ContextConsole.

screenshot for ContextConsole

This is opensource and supports both 32 and 64 bit

  • You can [answer your own question](http://superuser.com/help/self-answer) - you should remove the edit from the question and add an answer instead. – DavidPostill Dec 03 '16 at 14:49

1 Answers1

1

create new shortcut with cmd.exe /kcd /dd:\some_folder as target, go to shortcut properties, set shortcut key, go to advanced and set run as administrator.

For clarification:

cmd /k Run Command and then return to the CMD prompt
cd /d changing current folder and drive

danicotra
  • 1,934
  • 2
  • 14
  • 25
Adam Silenko
  • 664
  • 3
  • 16