Open elevated command window here


  1. Posts : 1,519
    El Capitan / Windows 10
       #1

    Open elevated command window here


    I could prolly figure it out but does anyone know offhand how to add an "Open elevated command window here" option in addition to the "Open command window here" shift+context menu for a folder?
      My Computer


  2. Posts : 17,796
    Windows 10, Home Clean Install
       #2

    Hope this helps

    Command Prompt. From our excellent tutorial collection
      My Computer


  3. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #3

    Hello Mike,

    Here you go mate.

    Open Command Window Here as Administrator

    Hope this helps,
    Shawn
    Last edited by Brink; 31 Mar 2010 at 12:31. Reason: updated link
      My Computer


  4. Posts : 1,519
    El Capitan / Windows 10
    Thread Starter
       #4

    I must be having a dull moment. I know how to shift+right click and get a command prompt. I'd like an elevated one the same way?
      My Computer


  5. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #5

    Shift+control+right click on a folder and choose open command window.
      My Computer


  6. Posts : 761
    Windows 2000 5.0 Build 2195
       #6

    Guys. ELEVATED. :)

    Edit 1: Okay, I'm currently experementing. Just a few more minutes and I can post a fix :P

    Edit 2: Got it finally!! (I needed this too)

    Open Command Window Here as Administrator

    Add these keys:
    Code:
     
    Windows Registry Editor Version 5.00
     
    [HKEY_CLASSES_ROOT\Directory\shell\runas]
    @="Open elevated command window here"
    "Extended"=""
    "NoWorkingDirectory"=""
     
    [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
    @="cmd.exe /s /k pushd \"%V\""
    Last edited by Brink; 31 Mar 2010 at 12:31. Reason: added link
      My Computer


  7. Posts : 1,519
    El Capitan / Windows 10
    Thread Starter
       #7

    arkhi said:
    Guys. ELEVATED. :)

    Edit 1: Okay, I'm currently experementing. Just a few more minutes and I can post a fix :P

    Edit 2: Got it finally!! (I needed this too)

    Add these keys:
    Code:
     
    Windows Registry Editor Version 5.00
     
    [HKEY_CLASSES_ROOT\Directory\shell\runas]
    @="Open elevated command window here"
    "Extended"=""
    "NoWorkingDirectory"=""
     
    [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
    @="cmd.exe /s /k pushd \"%V\""
    Now can you explain it? Thanks! Edit: Never mind -- i get the picture now
      My Computer


  8. Posts : 1,519
    El Capitan / Windows 10
    Thread Starter
       #8

    arkhi said:
    Guys. ELEVATED. :)

    Edit 1: Okay, I'm currently experementing. Just a few more minutes and I can post a fix :P

    Edit 2: Got it finally!! (I needed this too)

    Open Command Window Here as Administrator

    Add these keys:
    Code:
     
    Windows Registry Editor Version 5.00
     
    [HKEY_CLASSES_ROOT\Directory\shell\runas]
    @="Open elevated command window here"
    "Extended"=""
    "NoWorkingDirectory"=""
     
    [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
    @="cmd.exe /s /k pushd \"%V\""
    Nice. What's the Extended and NoWorkingDirectory for? I get the quoting issues and push/pop of the path.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:22.
Find Us