Add Copy Contents to Clipboard to Context Menu in Windows 10  

Page 1 of 5 123 ... LastLast
    Add Copy Contents to Clipboard to Context Menu in Windows 10

    Add Copy Contents to Clipboard to Context Menu in Windows 10

    How to Add 'Copy Contents to Clipboard' to Context Menu in Windows 10
    Published by Category: Customization
    19 Aug 2022
    Designer Media Ltd

    How to Add 'Copy Contents to Clipboard' to Context Menu in Windows 10


    The Copy Contents to Clipboard context menu item will allow users to copy the contents of a single .bat, .cmd, .css, .html, .js, .log, .ps1, .reg, .rtf, .txt, or .vbs file to the clipboard to make it easy to paste the contents where you like.

    This tutorial will show you how to add or remove the Copy Contents to Clipboard context menu of text type files for all users in Windows 10.

    While you must be signed in as an administrator to add or remove the context menu, all users will be able to use the context menu.


    EXAMPLE: "Copy Contents to Clipboard" context menu
    Add Copy Contents to Clipboard to Context Menu in Windows 10-copy_contents_to_clipboard_context_menu.png



    Here's How:

    1 Do step 2 (add-right click), step 3 (add-Shift+right click) , or step 4 (remove) below for what you would like to do.


    2 To Add Right Click "Copy Contents to Clipboard" to Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Add_Copy_Contents_to_Clipboard_context_menu.reg

    Download


    3 To Add Shift + Right Click "Copy Contents to Clipboard" to Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Add_Shift+Copy_Contents_to_Clipboard_context_menu.reg

    Download


    4 To Remove "Copy Contents to Clipboard" from Context Menu

    This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Remove_Copy_Contents_to_Clipboard_context_menu.reg

    Download


    5 Save the .reg file to your desktop.

    6 Double click/tap on the downloaded .reg file to merge it.

    7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    8 You can now delete the downloaded .reg file if you like.


    That's it,
    Shawn Brink






  1. Posts : 526
    Win7 Pro X64, Win10 Pro x640
       #1

    Will this reg tweak allow for selecting multiple text files and simultaneously copying all contents into one text file?

    Thanks!
      My Computer


  2. Posts : 70,979
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    bamajon1974 said:
    Will this reg tweak allow for selecting multiple text files and simultaneously copying all contents into one text file?

    Thanks!

    Hello bamajon,

    I'm afraid it will only work for a single file.
      My Computers


  3. Posts : 526
    Win7 Pro X64, Win10 Pro x640
       #3

    Ok. Thank you. I have another question unrelated to this topic but about shell extensions. Can I send a PM?
      My Computer


  4. Posts : 70,979
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    bamajon1974 said:
    Ok. Thank you. I have another question unrelated to this topic but about shell extensions. Can I send a PM?

    Sure, or post it in the forum.
      My Computers


  5. Posts : 140
    Windows 10 Home 1909 fully updated.
       #5

    WIN 10 Home 1903.
    The ADD reg file creates the appropriate Registry entries but the command text does not appear in the context menu for a TXT file.
      My Computer


  6. Posts : 70,979
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    Pollensa1946 said:
    WIN 10 Home 1903.
    The ADD reg file creates the appropriate Registry entries but the command text does not appear in the context menu for a TXT file.

    Hello Pollensa, and welcome to Ten Forums.

    Thank you for letting me know.

    It appears that Windows 10 has changed .txt file types to reference txtfilelegacy instead of txtfile in the registry now.

    However, adding the registry entries under txtfilelegacy still didn't add the context menu as expected. It may be related to NotePad now being a Microsoft Store app instead of a desktop app, but I don't see why it would yet.

    Code:
    [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\""

    I'll keep working on it to see if I may be able to find a workaround for it.
      My Computers


  7. Posts : 140
    Windows 10 Home 1909 fully updated.
       #7

    Thanks for the rapid response. BTW I cannot vouch for any other of the filetypes in the reg file as I did not test them, only the TXT file.
      My Computer


  8. Posts : 70,979
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    Pollensa1946 said:
    Thanks for the rapid response. BTW I cannot vouch for any other of the filetypes in the reg file as I did not test them, only the TXT file.
    It's currently affecting these file types:

    .log

    .rtf - unless WordPad is installed.

    .txt
      My Computers


  9. Posts : 70,979
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #9

    @Pollensa1946,

    Ok. I have updated the .reg files in the tutorial to work properly again if WordPad is installed and set as the default program for those file types.
      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 00:09.
Find Us




Windows 10 Forums