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

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
  • 2,036
Adam Silenko
  • 694
  • 3
  • 16