Skip to content

Instantly share code, notes, and snippets.

@micycle1
micycle1 / Copy Contents to Clipboard.reg
Created April 13, 2025 15:04
Adds a 'Copy Contents to Clipboard' context menu item to allow users to copy the contents of files to the clipboard to make it easy to paste the contents where you like.
Windows Registry Editor Version 5.00
; Step 1: Remove type-specific keys added by the old version of this script
[-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]