TOTALCMD.NET
ENG RUS
Plugins › TC Utilities

Copy file contents to the clipboard 1.0

⚙️ Windows system 📂 File operations TC Utilities Freeware x64

Screenshot: Copy file contents to the clipboard

Description

Script to be used as a button to copy the contents of the selected file to the clipboard.
For image files, it transfers the image to the clipboard. For text files (txt, log, bat, etc.), it transfers the text. Image formats supported are bmp, gif, jpg/jpeg, png, and tiff.

This only works on computers with GDI+ installed (in Windows XP or newer it is installed by default). So for Windows versions newer than XP, this will work out of the box.
For older Windows versions, GDI+ is hard to find. I found the latest version here:

https://web.archive.org/web/20160303183703/http://www.microsoft.com/en-us/download/details.aspx?id=18909

You can download it from there and try it at your own risk. I am also providing the same file downloaded from there, here, for convenience:

https://gitlab.com/pplupo/total-commander/-/raw/master/fileContentsToClipboard/WindowsXP-KB975337-x86-ENU.exe?inline=false

I have also found some references saying that it could be part of .NET framework, so I would rather try that first and see if it works.

It is based on NirCmd features that copy contents of different file types to the clipboard. I'm providing a script to make the parameters independent of the file type, together with nircmdc.exe.

NirCmd is a small free command-line utility that can be downloaded directly from the original website. If you want to update it, just download the newest version and replace nircmdc.exe.

Please report any issues at https://gitlab.com/pplupo/total-commander
For more information, please visit https://gitlab.com/pplupo/total-commander/-/blob/master/README.md#copy-file-contents-to-the-clipboard


This is how to set up the button.

Command: "Path_to_this_utility\Copy File Contents.bat"
Parameters: %S
Run minimized: check

See the screenshot below as an example:

More by Peter Lupo

PlantUML Lister 2.0

🧩 Development & executables TC Lister Plugins Open source x64

Allows visualizing PlantUML diagrams (puml, plantuml, uml, wsd, ws, and iuml) automatically. The ini file allows for selecting format preference…

Peter Lupo 25 Sep 2025 ↓ 776

Mermaid.js Lister 2.0

📝 Text & code TC Lister Plugins Open source x64

Allows visualizing Mermaid.js diagrams (.mermaid, .mmd) automatically. The ini file allows for selecting format preference (SVG or PNG). Source:…

Peter Lupo 25 Sep 2025 ↓ 16

Download Torrent 2.0

🌐 Network, internet & cloud TC Utilities Freeware x64

Download torrents TRANSPARENTLY! This button will allow you to select a torrent file and download it without actually opening the application or…

Peter Lupo 19 May 2021 ↓ 5

Similar plugins

Registry 5.2

⚙️ Windows system TC File System Plugins Freeware x64

System registry editor for Total Commander (x86 and x64). Features: quick search, key and values create/delete/copy/remove/edit/export. Quick view and…

Vitaly Knyazev 4 Aug 2012 ↓ 167,293

Uninstaller 1.8.1

⚙️ Windows system TC File System Plugins Freeware

Enhanced plugin for uninstalling different software. The same as Control Panel - "Add\Remove program", but more powerful and convenient. Capacityes:…

Igor Shkarednyi 18 Sep 2006 ↓ 187,557

AceHelper 0.3.7

⚙️ Windows system TC File System Plugins Freeware

Works on Windows 2000/XP and later - Display of almost full information on working process. - Opportunity change of process priority. - Opportunity…

Botace 28 Sep 2009 ↓ 104,260

Device Manager 1.4

⚙️ Windows system TC File System Plugins Freeware

+ Displays ABSOLUTE ALL devices installed in system; + Displays device properties dialogue by pressing ENTER; + Able to create a set of drivers for…

Alexey Ryabinin 2 Oct 2005 ↓ 77,786

decClipboardFS 3.6

⚙️ Windows system TC File System Plugins Freeware

Shows contents of Windows Clipboard as a file-system: different clipboard formats are presented as files of different extensions. As an option, when…

Alexey Torgashin 20 Jun 2008 ↓ 59,767

RedDetect 16.03.2013

⚙️ Windows system TC File System Plugins Freeware x64

You need to determine the device is displayed in the device manager with the question mark? You can not even imagine what kind of device used? Now you…

Alexander Myasnikov 16 Mar 2013 ↓ 54,082