Jump to content











Photo
- - - - -

[Vista/Win7] Add command prompt here with elevated permissions


  • Please log in to reply
No replies to this topic

#1 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10,207 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 12 February 2008 - 07:47 PM

While making the transition to Vista I noticed the lack of the right-click option to add "Command Prompt here". Googling I've found a small registry tweak to add this support feature along with another option to open a cmd window with elevated permissions.

Credits go to Randy for his blog post at http://www.randyrant..._tip_eleva.html

I mirror here his work:

Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOTDirectoryshellcmd]

@="Comm&and Prompt here"

"NoWorkingDirectory"=""

"Extended"=-



[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]

@="cmd.exe /k "pushd %L && title Command Prompt""



[HKEY_CLASSES_ROOTDirectoryshellrunas]

@="Ele&vated Comm&and Prompt here"

"NoWorkingDirectory"=""



[HKEY_CLASSES_ROOTDirectoryshellrunascommand]

@="cmd.exe /k "pushd %L && title Command Prompt""



[HKEY_CLASSES_ROOTDriveshellcmd]

@="Comm&and Prompt here"

"NoWorkingDirectory"=""

"Extended"=-



[HKEY_CLASSES_ROOTDriveshellcmdcommand]

@="cmd.exe /k "pushd %L && title Command Prompt""



[HKEY_CLASSES_ROOTDriveshellrunas]

@="Ele&vated Comm&and Prompt here"

"NoWorkingDirectory"=""



[HKEY_CLASSES_ROOTDriveshellrunascommand]

@="cmd.exe /k "pushd %L && title Command Prompt""


Attached File  PromptHere.reg   862bytes   58 downloads :thumbsup: