Open Command Window Here as Administrator

Page 4 of 5 FirstFirst ... 2345 LastLast

  1. Posts : 17
    Win7 Pro SP1 64-bit
       #30

    Perhaps someone out there knows to modify the .bat file I gave, to open elevated CMD prompt instead of normal one. I hope they find this thread and tell us

    How do you get a 'background' to right-click on when the file pane is completely full? The only way I can get a context menu with Open CMD options is in the completely blank area below all files. (I'm in details view.) No such area is available when files exceed a page? (Yes I applied the .REG file from tutorial.)
      My Computer


  2. Posts : 72,036
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #31

    appyface said:
    How do you get a 'background' to right-click on when the file pane is completely full? The only way I can get a context menu with Open CMD options is in the completely blank area below all files. (I'm in details view.) No such area is available when files exceed a page? (Yes I applied the .REG file from tutorial.)
    You should be able to scroll down in the window or drag the window border until there's a blank space in the background to right click on.
      My Computer


  3. Posts : 17
    Win7 Pro SP1 64-bit
       #32

    Right-clicking or shift-right-clicking in 'white space' (where there is file information somewhere on that line) doesn't bring up the CMD window options for me.

    The only place I can get the options to come up is below the file list, on a completely blank line. But explorer won't give me that blank line when the file list exceeds one page, regardless of the size of the explorer window. I tried doing this in C:\windows directory, for example.
      My Computer


  4. Posts : 72,036
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #33

    How about to the right of the file?

    If expanding the right border doesn't help, you should also be able to temporarily shrink the width of a column to be able to get enough blank space in the folder window background to Shift+right click on.

    Does maximizing the window full screen help?
      My Computer


  5. Posts : 17
    Win7 Pro SP1 64-bit
       #34

    No, to the right of the file line doesn't bring up any CMD window option. Maximizing doesn't work because the file list is still greater than one page, and scrolling to very bottom doesn't offer any blank line.


    BUT - I just solved it with my send-to menu method. Don't know why I didn't think of this before.

    1. Created shortcut to my OpenCMDPromptHere.bat file and renamed it OpenCMDPromptElev

    2. Run as administrator is greyed out on Compatibility tab, BUT is still available under Shortcut tab, Advanced button.

    Both normal and elevated CMD windows are available in the file's send-to menu now - and they both work.
      My Computer


  6. Posts : 72,036
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #35

    Great job.
      My Computer


  7. Posts : 1
    Windows 7 Ultimate x64
       #36

    Open Command Window Here as Administrator


    hello
    i followed the post of how to integrate "open command windows here as administrator" with the help of registray file that add the command to the context menu of windows explorer (that you posted for download) and it works fine. as well as the other post of adding the "take ownership" of file or folder also with help of registray file. both of the files works fine and add the appropriate command to the context menu of windows explorer. but for some reason i don't understand they can't be added both to the context menu and everytime i double click the registray file of one of them the other dissapire from the context menu. any one know why?
      My Computer


  8. Posts : 7,107
    W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
       #37

    Just my assumption,

    If there using the same ROOT then they would overide the each other.

    I've got admin command prompt on my task bar, the Take Ownership option is dangerous in the wrong hands if you DONT know what your doing LEAVE IT ALONE.

    Roy
      My Computer


  9. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #38

    torchwood said:
    Just my assumption,

    If there using the same ROOT then they would overide the each other.

    I've got admin command prompt on my task bar, the Take Ownership option is dangerous in the wrong hands if you DONT know what your doing LEAVE IT ALONE.

    Roy


    Jack
      My Computer


  10. Posts : 1
    Windows 10
       #39

    I made a version for admin and non-admin command windows that will not trash the Take Ownership registry entry and also works in library-folders.

    NOTE: The admin command windows gets launched by a powershell instance that is hosted inside of another command window, so what you see is one command window that opens and closes and then an admin command window that opens.

    EDIT: I'm getting tired of updating every place i post it so here's a link to my stackoverflow post: How can I open a cmd window in a specific location? - Stack Overflow
    Last edited by FocusedWolf; 12 Jul 2019 at 11:19.
      My Computer


 
Page 4 of 5 FirstFirst ... 2345 LastLast

  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 03:03.
Find Us