-
Type REGEDIT in start menu search box or run and press Enter.

-
Navigate to the following registry key:
HKEY\CLASSES\ROOT\txtfile\shell

-
Right-Click on shell and select New -> Key. Name it Copy Contents

-
Right-Click on Copy Contents and select New -> Key. Name it Command

-
In the right-side pane, double-click on (Default).

-
In the Value Data box, type CMD /C CLIP < "%1"

-
Click OK.

Now you will get the option to copy the contents of a text file from the context menu.







