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
    17
    0
  2. Boyfriend

    Boyfriend MDL Senior Member

    Feb 10, 2010
    364
    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 Junior Member

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

    Thx.
     
  5. SwampFox56

    SwampFox56 MDL Novice

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

    racky29 MDL Senior Member

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

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    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" 
     
  8. jazzar

    jazzar MDL Junior Member

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

    vali20 MDL Member

    Aug 8, 2012
    123
    59
    10
    Thank you, cool one!
     
  10. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60
  11. Boyfriend

    Boyfriend MDL Senior Member

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