Clipboard 2 File

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
rienvanham
Junior Member
Junior Member
Posts: 18
Joined: 2014-01-11, 11:45 UTC

Clipboard 2 File

Post by *rienvanham »

Dear all,

Perhaps a question that already has been asked but I can't find the answer in a quick way:

Is there a possibility to save the content of the clipboard to a file?

e.g.:
Select a piece of text in (whatever) and copy this to the clipboard (CTRL+C).
In another filemanager I do a paste (CTRL-V) to a folder and it creates a file for me with the content of the clipboard.

Can the same be done with TC? Now I paste the content in an editor and save it as a file. This can be done quicker.

Thanks in advance,

Greetings, Rien.
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

NirSoft NirCmd.exe save from Clipboard to Text Picture Image

Post by *Stefan2 »

This is not implemented into TC, "we" often utilize NirSoft's nircmd (http://www.nirsoft.net/utils/nircmd.html)


Example nircmd.exe commands:
clipboard addfile "c:\temp\clip1.txt" # add the content of the clipboard to a file. (text only)
clipboard writefile "c:\temp\clip2.txt" # write the content of the clipboard to a file. (text only)
clipboard writeufile "c:\temp\clip3.txt" # write the content of the clipboard to a Unicode file. (text only)
clipboard saveimage "c:\temp\clip01.png" # Save the current image in the clipboard into a file.
clipboard saveimage "c:\temp\clip01.gif"






My TC button(s):

Command: "D:\rive\path to\Tools\NirSoft\nircmd.exe
--or better--
Command: "%Commander_Path%\Tools\NirSoft\nircmd.exe

Parameters: clipboard saveimage ___~$currdate.ddMMyyyy$-~$currtime.HHmmss$_Clipboard.png
--or--
Parameters: clipboard writefile ___~$currdate.ddMMyyyy$-~$currtime.HHmmss$_Clipboard.TXT

Icon: WCMICONS.DLL
Tooltip: NirSofts NirCmd clipboard saveimage -or- writefile





- - -

(best use ISO-formated date: $currdate.yyyyMMdd$)

Creates
"___20180530-121120_Clipboard.png" file
(needs to have a picture in the clipboard!!!)
-or-
"___20180530-122228_Clipboard.TXT" file
(needs to have text in the clipboard!!!)
in current active folder.




- - -

Other tipp from Horst.Epp:

How do I move to the path of the clipboard?
viewtopic.php?f=3&t=50065
cmd=nircmd.exe exec show %COMMANDER_EXE% /O /S /A /L="~$clipboard$



- - -





 
Last edited by Stefan2 on 2018-05-30, 10:27 UTC, edited 1 time in total.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Try clipboard file system plugin e.g. this one http://www.totalcmd.net/plugring/decClipboardFS.html
rienvanham
Junior Member
Junior Member
Posts: 18
Joined: 2014-01-11, 11:45 UTC

Post by *rienvanham »

Sorry, that plugin is 32bit and I'm using the 64bit version of TC.
rienvanham
Junior Member
Junior Member
Posts: 18
Joined: 2014-01-11, 11:45 UTC

Post by *rienvanham »

Thank you Stefan2. I will try this.
rienvanham
Junior Member
Junior Member
Posts: 18
Joined: 2014-01-11, 11:45 UTC

Post by *rienvanham »

Hi Stephan2,

That does the job! Thanks a lot!

Regards, Rien
Post Reply