Unofficial database of all Total Commander plugins and addons  

Copy file contents to the clipboard 1.0

Copy file contents to the clipboard 1.0

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:

Category: TC Utilities
Status: Freeware
Author: Peter Lupo
Added: 18.05.2021
Updated: 18.05.2021
Downloaded: 975 times
Discuss on TC forum

 
Copy file contents to the clipboard




Used cars from Japan

 

Total Commander
  Main page
  Search site
  Links   RSS
  Submit a Plugin

Downloads
  FS Plugins
  Lister Plugins
  Packer Plugins
  Content Plugins
  TC Utilities
  SynPlus for TC
  MultiArc Addons
  Far2wc Addons
  Language Files
  Icons
  Developers
  Others   Text Editors



TOTALCMD.NET © 2004 Personal project
Idea, design and programming © Andrei Piasetski aka Ergo
This is an unofficial Total Commander site
Official Total Commander site is www.ghisler.com