Copy Content to Clipboard - Add to Context Menu

How to Add "Copy Content to Clipboard" to Context Menu in Vista, Windows 7, and Windows 8

   Information
This tutorial will show you how to add or remove Copy to Clipboard from the right context menu of BAT, CMD, CSS, HTML, JS, LOG (txt), REG, RTF, TXT, and VBS files in Vista, Windows 7, and Windows 8.

If added, this makes it a lot easier to copy the entire contents of a file with one of these file extensions to the clipboard, then paste the contents where you like.

   Note
This will not work for the RTF (WordPad) file extension context menus if you have Microsoft Office Word installed and set as the default program to open RTF files instead of WordPad.


EXAMPLE: Context Menu with "Copy Content to Clipboard" Added or Removed
Default.jpgAdded.jpg



OPTION ONE

Add or Remove "Copy Content to Clipboard" using REG File


NOTE: This option will allow you to automatically add or remove Copy to Clipboard from all of the context menus of the BAT, CMD, CSS, HTML, JS, LOG (txt), REG, RTF, TXT, and VBS files at once.
1. Do step 2 or 3 below for what you would like to do.

2. To Add "Copy Content to Clipboard"
A) Click/tap on the download button below to download the file below, and go to step 4 below.
Add_Copy_Content_to_Clipboard.reg

Download


3. To Remove "Copy Content to Clipboard"
A) Click/tap on the download button below to download the file below, and go to step 4 below.
Remove_Copy_Content_to_Clipboard.reg

Download


4. Save the .reg file to your Desktop.

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

6. Click/tap on Run, Continue (UAC-Vista) or Yes (UAC-Windows 7/8), Yes, and then OK when prompted.

7. When done, you can delete the downloaded .reg file if you like.




OPTION TWO

Add or Remove "Copy Content to Clipboard" in Registry Editor


NOTE: This option will allow you to manually pick and choose to add or remove Copy to Clipboard from either one, more, or all of the context menus of the BAT, CMD, CSS, HTML, JS, LOG (txt), REG, RTF, TXT, and VBS files.
1. Press the Windows + R keys to open the Run dialog, type regedit, and press Enter.

2. If prompted by UAC, then click/tap on Continue (Vista) or Yes (Windows 7/8).

3. Do step 4 or 5 below for what you would like to do.

4. To Add "Copy Content to Clipboard" to the Context Menu
A) In regedit, navigate to the location below for the file extension that you wish to add Copy Content to Clipboard to.

  • HKEY_CLASSES_ROOT\batfile\shell
  • HKEY_CLASSES_ROOT\cmdfile\shell
  • HKEY_CLASSES_ROOT\CSSfile\shell
  • HKEY_CLASSES_ROOT\htmlfile\shell
  • HKEY_CLASSES_ROOT\JSFile\shell
  • HKEY_CLASSES_ROOT\regfile\shell
  • HKEY_CLASSES_ROOT\rtffile\shell
  • HKEY_CLASSES_ROOT\txtfile\shell
  • HKEY_CLASSES_ROOT\VBSFile\shell
B) In the left pane of regedit, right click on shell, click/tap on New and Key, type Copy Content to Clipboard, and press Enter. (see screenshot below)
REG1.jpg
C) In the right pane of Copy Content to Clipboard, right click on a empty space, click on New and String Value, type Icon, press Enter, and double click/tap on Icon to modify it. (see screenshot above)

D) In the Edit String box, copy and paste the commmand below, and click/tap on OK.
DxpTaskSync.dll,-52
E) In the left pane of regedit, right click on Copy Content to Clipboard, click/tap on New and Key, type command, and press Enter. (see screenshot below)
REG2.jpg
F) In the right pane of command, double click/tap on (Default) to modify it. (see screenshot above)

G) In the Edit String box, copy and paste the commmand below, and click/tap on OK.
cmd /c clip < "%1"
H) Repeat step 3 above for any other file extenstion that you wish to add Copy Content to Clipboard to it's context menu.

I) When finished, go to step 6 below.
5. To REMOVE "Copy Content to Clipboard" from the Context Menu

A) In regedit, navigate to the location below for the file extension that you wish to remove Copy Content to Clipboard from.
  • HKEY_CLASSES_ROOT\batfile\shell\Copy Content to Clipboard
  • HKEY_CLASSES_ROOT\cmdfile\shell\Copy Content to Clipboard
  • HKEY_CLASSES_ROOT\CSSfile\shell\Copy Content to Clipboard
  • HKEY_CLASSES_ROOT\htmlfile\shell\Copy Content to Clipboard
  • HKEY_CLASSES_ROOT\JSFile\shell\Copy Content to Clipboard
  • HKEY_CLASSES_ROOT\regfile\shell\Copy Content to Clipboard
  • HKEY_CLASSES_ROOT\rtffile\shell\Copy Content to Clipboard
  • HKEY_CLASSES_ROOT\txtfile\shell\Copy Content to Clipboard
  • HKEY_CLASSES_ROOT\VBSFile\shell\Copy Content to Clipboard
B) In the left pane of regedit, right click on Copy Content to Clipboard, and click/tap on Delete. (see screenshot below)
Delete-1.jpg
C) Click/tap on Yes to approve deleting the key. (see screenshot below)
Delete.jpg
D) Repeat step 4 above for any other file extenstion that you wish to remove Copy Content to Clipboard from it's context menu.

E) When finished, continue on to step 6.
6. Close Registry Editor.
That's it,
Shawn



 

Attachments

Last edited:
Thank you so much. I have a question... Can't we put this command between Cut-Copy-Paste section?

Like this;
mck4r.png


Sorry for bad language.
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64BitIntel 2500KCorsair 1866Mhz 2x4GBSapphire R7 265
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate 64Bit
CPU
Intel 2500K
Motherboard
MSI Z68A-G43
Memory
Corsair 1866Mhz 2x4GB
Graphics Card(s)
Sapphire R7 265
Sound Card
Creative Sound Blaster Audigy Value
Monitor(s) Displays
AOC F22S+ 21.5"
Screen Resolution
1920x1080
Hard Drives
Kingston 120GB SSD
Samsung HD502HJ 500GB
PSU
Xigmatek X-Calibre 600W 80+
Case
Aerocool Cyborgx
Cooling
Thermaltake Frio
Keyboard
Microsoft Multimedia Keyboard
Mouse
Logitech G502
Internet Speed
16MBp/s
Antivirus
I do not use
Browser
Generally Google Chrome
You're most welcome Deeppit.

I'm not aware of how to get it in the same section as Cut and Copy. :(
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Thanks for the answer anyway.
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64BitIntel 2500KCorsair 1866Mhz 2x4GBSapphire R7 265
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate 64Bit
CPU
Intel 2500K
Motherboard
MSI Z68A-G43
Memory
Corsair 1866Mhz 2x4GB
Graphics Card(s)
Sapphire R7 265
Sound Card
Creative Sound Blaster Audigy Value
Monitor(s) Displays
AOC F22S+ 21.5"
Screen Resolution
1920x1080
Hard Drives
Kingston 120GB SSD
Samsung HD502HJ 500GB
PSU
Xigmatek X-Calibre 600W 80+
Case
Aerocool Cyborgx
Cooling
Thermaltake Frio
Keyboard
Microsoft Multimedia Keyboard
Mouse
Logitech G502
Internet Speed
16MBp/s
Antivirus
I do not use
Browser
Generally Google Chrome
support for foreign language

Hi excellent tool and tuto thanks, however, are you aware that copy pasting using this tools in French or Spanish or any other language with accents leads and non English characters lead to weird characters being pasted instead of the proper text?

Would be great to solve this.

PS: changing the keyboard language has no effect.
 

My Computer My Computer

At a glance

w10 64
Computer type
PC/Desktop
OS
w10 64
Back
Top