Add "Take Ownership" And "Open with Notepad" to context menu

Discussion in 'Windows 8' started by SwampFox56, Aug 25, 2012.

  1. SwampFox56

    SwampFox56 MDL Novice

    Joined:
    Aug 14, 2012
    Messages:
    47
    Likes Received:
    17
    Trophy Points:
    0
  2. Boyfriend

    Boyfriend MDL Senior Member

    Joined:
    Feb 10, 2010
    Messages:
    362
    Likes Received:
    112
    Trophy Points:
    10
    I use FileMenu Tools (Latest build is 6.3) to get the same + plenty of other built-in commands. Moreover, custom commands are supported and useful for dos related utilities (e.g., I use it to custom scan any file/folder with Emsisoft Command Line Scanner) It is compatible with Windows 8 RTM.
     
  3. lunario

    lunario MDL Senior Member

    Joined:
    Aug 5, 2012
    Messages:
    379
    Likes Received:
    45
    Trophy Points:
    10
    great tool mate :worthy:
     
  4. jazzar

    jazzar MDL Junior Member

    Joined:
    Aug 11, 2012
    Messages:
    50
    Likes Received:
    4
    Trophy Points:
    0
    Any expert to confirm the script ?

    Thx.
     
  5. WIKIMACK

    WIKIMACK MDL Expert

    Joined:
    Nov 10, 2011
    Messages:
    1,535
    Likes Received:
    1,006
    Trophy Points:
    60
  6. SwampFox56

    SwampFox56 MDL Novice

    Joined:
    Aug 14, 2012
    Messages:
    47
    Likes Received:
    17
    Trophy Points:
    0
    Thanks for the program! However I like mine more. Only because its short and to the point ;P
     
  7. luke

    luke MDL Senior Member

    Joined:
    Jun 22, 2007
    Messages:
    461
    Likes Received:
    35
    Trophy Points:
    10
  8. racky29

    racky29 MDL Senior Member

    Joined:
    Aug 2, 2007
    Messages:
    285
    Likes Received:
    92
    Trophy Points:
    10
    #8 racky29, Aug 27, 2012
    Last edited by a moderator: Apr 20, 2017
    this Open with Notepad Registry entry will also
    add a notepad icon next to the Open with Notepad right click command

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\Open with Notepad]
    "Icon"="notepad.exe,-2"
    
    [HKEY_CLASSES_ROOT\*\shell\Open with Notepad\command]
    @="notepad.exe %1"
    
    copy and paste that to a .txt document, rename it to .reg and click it to add to registry.

    or get it here
    View attachment Add_Open_with_Notepad.rar
     
  9. Mr Jinje

    Mr Jinje MDL Expert

    Joined:
    Aug 19, 2009
    Messages:
    1,773
    Likes Received:
    1,098
    Trophy Points:
    60
    #9 Mr Jinje, Aug 27, 2012
    Last edited by a moderator: Apr 20, 2017
    The word for Administrators is different in other languages, causing the icacls portion of the Take Ownership tweak to fail. This will work on english or non-english machines.

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\runas]
    @="Take Ownership"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\*\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-32-544:F"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-32-544:F"
    
    [HKEY_CLASSES_ROOT\Directory\shell\runas]
    @="Take Ownership"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-32-544:F /t"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-32-544:F /t" 
     
  10. jazzar

    jazzar MDL Junior Member

    Joined:
    Aug 11, 2012
    Messages:
    50
    Likes Received:
    4
    Trophy Points:
    0
    Guys how about one solution, one for all which one is the best and should be used ?
     
  11. Aly

    Aly MDL Member

    Joined:
    Feb 27, 2008
    Messages:
    150
    Likes Received:
    62
    Trophy Points:
    10
  12. vali20

    vali20 MDL Junior Member

    Joined:
    Aug 8, 2012
    Messages:
    67
    Likes Received:
    30
    Trophy Points:
    0
    Thank you, cool one!
     
  13. Rock Hunter

    Rock Hunter MDL Senior Member

    Joined:
    Dec 6, 2011
    Messages:
    407
    Likes Received:
    99
    Trophy Points:
    10
  14. jazzar

    jazzar MDL Junior Member

    Joined:
    Aug 11, 2012
    Messages:
    50
    Likes Received:
    4
    Trophy Points:
    0
  15. Windows Fan

    Windows Fan MDL Senior Member

    Joined:
    Mar 6, 2012
    Messages:
    352
    Likes Received:
    210
    Trophy Points:
    10
  16. Mr Jinje

    Mr Jinje MDL Expert

    Joined:
    Aug 19, 2009
    Messages:
    1,773
    Likes Received:
    1,098
    Trophy Points:
    60
  17. Boyfriend

    Boyfriend MDL Senior Member

    Joined:
    Feb 10, 2010
    Messages:
    362
    Likes Received:
    112
    Trophy Points:
    10