Add Copy Contents to Clipboard to Context Menu in Windows 10  

Page 4 of 5 FirstFirst ... 2345 LastLast

  1. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #30

    Brink said:
    Great find @Paul Black. I was playing with it using the Microsoft.PowerShellScript.1 key earlier, but I kept getting a no program associated error with the context menu for some reason.

    This works though. Tutorial now updated to include the context menu for .ps1 files.
    Thanks @Brink.
      My Computer


  2. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #31

    Hello @Brink,

    EXTREMELY useful Tutorial BTW.

    Just an observation that doesn't really matter, but when you right-click a .txt file, there are two instances of Copy Contents to Clipboard in the Context Menu. I think it has to do with this section . . .
    Code:
    [HKEY_CLASSES_ROOT\textfile\shell\CopyContents]
    "Extended"=-
    "Icon"="DxpTaskSync.dll,-52"
    "MUIVerb"="Copy Contents to Clipboard"
    
    [HKEY_CLASSES_ROOT\textfile\shell\CopyContents\command]
    @="cmd /c clip < \"%1\""
    
    [HKEY_CLASSES_ROOT\txtfile\shell\CopyContents]
    "Extended"=-
    "Icon"="DxpTaskSync.dll,-52"
    "MUIVerb"="Copy Contents to Clipboard"
    
    [HKEY_CLASSES_ROOT\txtfile\shell\CopyContents\command]
    @="cmd /c clip < \"%1\""
    
    [HKEY_CLASSES_ROOT\txtfilelegacy\shell\CopyContents]
    "Extended"=-
    "Icon"="DxpTaskSync.dll,-52"
    "MUIVerb"="Copy Contents to Clipboard"
    
    [HKEY_CLASSES_ROOT\txtfilelegacy\shell\CopyContents\command]
    @="cmd /c clip < \"%1\""
    As I said, not a real problem as it caters for all instances of text files.

    Also, does . . .
    Code:
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\CopyContents]
    . . . need to be added to the Remove_Copy_Contents_to_Clipboard_context_menu REG file?
      My Computer


  3. Posts : 69,436
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #32

    @Paul Black,

    Thank you. Remove .reg file updated.

    Odd. I'm not getting duplicate context menus for .txt files.

    Add Copy Contents to Clipboard to Context Menu in Windows 10-txt.jpg
      My Computers


  4. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #33

    Hello @Brink,

    Brink said:
    Thank you. Remove .reg file updated.


    Brink said:
    Odd. I'm not getting duplicate context menus for .txt files.

    Add Copy Contents to Clipboard to Context Menu in Windows 10-txt.jpg
    I will have a look again tomorrow. I have been performing a lot of registry actions today so I might actually need to do a full shutdown and restart. I will let you know how it goes.
      My Computer


  5. Posts : 17,838
    Windows 10
       #34

    One entry here...

    Add Copy Contents to Clipboard to Context Menu in Windows 10-000060.png
      My Computer


  6. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #35

    Edwin said:
    One entry here...

    Add Copy Contents to Clipboard to Context Menu in Windows 10-000060.png

    I will have another look at mine later.
      My Computer


  7. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #36

    Hello @Brink,

    Firstly, there is an entry in the Remove_Copy_Contents_to_Clipboard_context_menu.reg file that needs to be removed as it is not included in the Add_Copy_Contents_to_Clipboard_context_menu.reg file . . .
    Code:
    [-HKEY_CLASSES_ROOT\.txt\shell\CopyContents]
    This is the new list in the order that they appear in the Add_Copy_Contents file . . .
    Code:
    [-HKEY_CLASSES_ROOT\batfile\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\cmdfile\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\.css]
    [-HKEY_CLASSES_ROOT\htmlfile\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\.html\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\JSFile\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\CopyContents]
    [-HKEY_CLASSES_ROOT\regfile\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\rtffile\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\textfile\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\txtfile\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\txtfilelegacy\shell\CopyContents]
    [-HKEY_CLASSES_ROOT\VBSFile\shell\CopyContents]

    Secondly, the reason I was getting the double entry was [ I think ] because in my REG file I had them set in a different order to yours. for example . . .
    Code:
    ; *** BAT files ***
    
    [HKEY_CLASSES_ROOT\batfile\shell\CopyContents]
    "MUIVerb"="Copy Contents to Clipboard"
    "Icon"="C:\\Users\\System-Admin\\System-Admin_Master\\System-Admin_Icons\\MyCopy.ico"
    "Position"="Top"
    "Extended"=-
    
    [HKEY_CLASSES_ROOT\batfile\shell\CopyContents\command]
    @="cmd /c clip < \"%1\""
    Where as yours is . . .
    Code:
    "Extended"=-
    "Icon"="DxpTaskSync.dll,-52"
    "MUIVerb"="Copy Contents to Clipboard"
    I think it is probably the position that I had "Extended"=- that caused the problem!
    I removed my REG keys and then ran yours [ with my custom icons ], and the double entry didn't appear!

    Can I ask, is the structure that they are built important [ priority wise ] please?

    Thanks in advance.
      My Computer


  8. Posts : 318
    Windows 10 Home Single Language 21H1
       #37

    it is useful for me thanks @Brink and @Paul Black

    brink why your scan with defender icon is different than me
    is it about windows 10 1909 and 2004 differences?

    Add Copy Contents to Clipboard to Context Menu in Windows 10-ekran-goeruentuesue-46-.png
      My Computer


  9. Posts : 69,436
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #38

    Paul Black said:
    Hello @Brink,

    Firstly, there is an entry in the Remove_Copy_Contents_to_Clipboard_context_menu.reg file that needs to be removed as it is not included in the Add_Copy_Contents_to_Clipboard_context_menu.reg file . . .
    Code:
    [-HKEY_CLASSES_ROOT\.txt\shell\CopyContents]
    This is the new list in the order that they appear in the Add_Copy_Contents file . . .

    Secondly, the reason I was getting the double entry was [ I think ] because in my REG file I had them set in a different order to yours. for example . . .

    I think it is probably the position that I had "Extended"=- that caused the problem!
    I removed my REG keys and then ran yours [ with my custom icons ], and the double entry didn't appear!

    Can I ask, is the structure that they are built important [ priority wise ] please?

    Thanks in advance.
    I think I left the [-HKEY_CLASSES_ROOT\.txt\shell\CopyContents] line in the remove .reg file for an older version of the add .reg file to make sure it was removed. It's no longer needed now though, so it's now removed and updated.

    The order of the values under the key in a .reg file really don't matter. I just like to have them in alphabetical order to make it easier to spot them.

    The "Extended"=- line is there to remove the Shift+Right Click requirement if someone used the other add .reg file for Shift+Right Click. It wouldn't have added an extra context menu listing.
      My Computers


  10. Posts : 69,436
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #39

    Feuer said:
    it is useful for me thanks @Brink and @Paul Black

    brink why your scan with defender icon is different than me

    is it about windows 10 1909 and 2004 differences?
    Hello Feuer,

    Correct. The Windows Security and Microsoft Defender icon was changed in version 2004 to what it's my screenshot.
      My Computers


 

Tutorial Categories

Add Copy Contents to Clipboard to Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


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

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




Windows 10 Forums