Add Copy Contents to Clipboard to Context Menu in Windows 10  

Page 3 of 5 FirstFirst 12345 LastLast

  1. Posts : 68,995
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #20

    Pollensa1946 said:
    Works again, as in using NOTEPAD? Or using any app, for example ULTRAEDIT?

    Yes, it should now again.
      My Computers


  2. Posts : 140
    Windows 10 Home 1909 fully updated.
       #21

    Works on a TXT file with ULTRAEDIT set as default. Great, thanks!
      My Computer


  3. Posts : 17,838
    Windows 10
       #22

    @Brink

    The html one doesn't work unless you do the same:

    Code:
    ;For HTML files
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.html\shell\CopyContents]
    "Extended"=-
    "Icon"="DxpTaskSync.dll,-52"
    "MUIVerb"="Copy Contents to Clipboard"
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.html\shell\CopyContents\command]
    @="cmd /c clip < \"%1\""
    I've also made a portion for .css files, you can throw it in the tut if you feel like it:

    Code:
    ;For CSS files
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.css]
    "PerceivedType"="document"
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.css\shell]
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.css\shell\Copy Contents]
    "Icon"="DxpTaskSync.dll,-52"
    "MUIVerb"="Copy Contents to Clipboard"
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.css\shell\Copy Contents\command]
    @="cmd /c clip < \"%1\""
    The .css association is not present by default but it should add automatically.

    BTW: This tut is a good one! Very handy for me!
      My Computer


  4. Posts : 68,995
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #23

    @Edwin,

    Done. Tutorial updated for this.
      My Computers


  5. Posts : 17,838
    Windows 10
       #24

    A note of interest:

    On a UWP jump list, only .txt files are copy-able... (and there's no clipboard icon in the right click menu)

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

    On a Win32 jump list, all files are copy-able...

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


  6. Posts : 17,838
    Windows 10
       #25

    Gotta run the reg file after the update, only adheres to reg files!
      My Computer


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

    Hello @Brink,

    I thought it would be nice to include PowerShell in the REG file so I decided to put the code together and then post it for your consideration to include it so others could also benefit.

    However, I am having a problem incorporating it!

    I have tried this [ plus a few others ] . . .
    Code:
    ;For PS1 files
    [HKEY_CLASSES_ROOT\ps1file\shell\CopyContents]
    "Extended"=-
    "Icon"="DxpTaskSync.dll,-52"
    "MUIVerb"="Copy Contents to Clipboard"
    
    [HKEY_CLASSES_ROOT\ps1file\shell\CopyContents\command]
    @="cmd /c clip < \"%1\""
    I can't seem to find where it is situated. I have obviously looked for . . .
    Code:
    HKEY_CLASSES_ROOT\SystemFileAssociations\.ps1
    HKEY_CLASSES_ROOT\SystemFileAssociations\.ise
    . . . etc etc.

    Thanks in advance.
      My Computer


  8. Posts : 68,995
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #27

    Hello @Paul Black,

    Hmm, I'm not having much luck for .ps1 files either.
      My Computers


  9. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #28

    @Brink,

    Brink said:
    Hmm, I'm not having much luck for .ps1 files either.
    Well, it has taken me a while, but here it is . . .
    Code:
    ;For PS1 files
    [HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\shell\CopyContents]
    "Extended"=-
    "Icon"="DxpTaskSync.dll,-52"
    "MUIVerb"="Copy Contents to Clipboard"
    
    [HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\shell\CopyContents\command]
    @="cmd /c clip < \"%1\""
    If you can check that it is OK please and whether or not it will be a good addition to the Tutorial.
      My Computer


  10. Posts : 68,995
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #29

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




Windows 10 Forums