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

    Aug 14, 2012
    47
    15
    0
  2. Boyfriend

    Boyfriend MDL Senior Member

    Feb 10, 2010
    361
    112
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. lunario

    lunario MDL Senior Member

    Aug 5, 2012
    379
    45
    10
    great tool mate :worthy:
     
  4. jazzar

    jazzar MDL Novice

    Aug 11, 2012
    49
    4
    0
    Any expert to confirm the script ?

    Thx.
     
  5. WIKIMACK

    WIKIMACK MDL Expert

    Nov 10, 2011
    1,532
    984
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. SwampFox56

    SwampFox56 MDL Novice

    Aug 14, 2012
    47
    15
    0
    Thanks for the program! However I like mine more. Only because its short and to the point ;P
     
  7. racky29

    racky29 MDL Senior Member

    Aug 2, 2007
    285
    91
    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
     
  8. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,085
    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" 
     
  9. jazzar

    jazzar MDL Novice

    Aug 11, 2012
    49
    4
    0
    Guys how about one solution, one for all which one is the best and should be used ?
     
  10. vali20

    vali20 MDL Junior Member

    Aug 8, 2012
    65
    30
    0
    Thank you, cool one!
     
  11. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,085
    60
  12. Boyfriend

    Boyfriend MDL Senior Member

    Feb 10, 2010
    361
    112
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...