Copy Text file contents to the Clipboard using the Context menu
To copy the contents of a text-based file, you open the file in an editor such as Notepad, use Select All and then copy the contents. How about accomplishing it using a command in the context menu?
Add "Copy to Clipboard" option in the Context menu
Note: The following tweak works fine in Windows XP and Windows Vista. If you are using Windows XP, you should download clip.exe from Microsoft site in order for the Copy to Clipboard option to work.
1. Launch Regedit.exe and navigate to the following branch:
2. Create a subkey named Clipboard.
3. Double-click (default) and set Copy to Clipboard as its Value data
4. Under Clipboard, create another subkey named command
5. Select the following key:
6. Double-click (default) and set its Value data to:
7. Exit the Registry Editor.

Now, right-click on a text file and choose Copy to Clipboard. This copies the text file contents to the Clipboard. To verify, you may open Notepad.exe and press CTRL+V to paste the contents from Clipboard.
Registry Fix
To automate the above, download clipcontents.zip and extract the files to a folder. Double-click clipcontents.reg to run it.
RELATED POSTS
- How to Copy Error Message text to Clipboard
- Print Directory Listing to Clipboard from the Context Menu in Windows XP and Windows Vista
- “Copy Target URL” context menu option for Internet Shortcut (.url) files
- Add “Copy as Path” option to the context menu in Windows XP
- Print search results in Windows Vista
- PreviewConfig tool registers file types for the Preview Pane in Windows Vista
- Copy Title and URL Menu Extension for Internet Explorer
- Add the “Open with Notepad” context menu option for all file types
- Add Copy To and Move To to the right-click menu in Vista
- Add Select All option to the context menu in Windows Vista
BOOKMARK THIS PAGE
BlinkList | del.icio.us | Digg it | Furl | ma.gnolia | Newsvine | reddit | Spurl | Wink |


If you enjoyed this post, make sure you
Prefer an E-mail subscription?
Comment by Peter van Dam on 26 July 2008:
Great find, thanks!
Comment by Michael on 26 July 2008:
Nice edit, thanks! :)
Comment by Michael on 26 July 2008:
Does anyone know how to make ‘Copy to Clipboard’ appear under ‘Cut’ and ‘Copy’ please?
Thanks. :)