Clipboard 2 File

English support forum

Moderators: Stefan2, white, sheep, Hacker

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

Clipboard 2 File

Post by *rienvanham » 2018-05-30, 09:01 UTC

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: 2469
Joined: 2007-09-13, 22:20 UTC
Location: Europa

NirSoft NirCmd.exe save from Clipboard to Text Picture Image

Post by *Stefan2 » 2018-05-30, 09:48 UTC

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?
https://ghisler.ch/board/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: 710
Joined: 2005-01-26, 15:12 UTC

Post by *Gral » 2018-05-30, 09:54 UTC

Try clipboard file system plugin e.g. this one http://www.totalcmd.net/plugring/decClipboardFS.html

rienvanham
Junior Member
Junior Member
Posts: 12
Joined: 2014-01-11, 11:45 UTC

Post by *rienvanham » 2018-05-30, 10:10 UTC

Sorry, that plugin is 32bit and I'm using the 64bit version of TC.

rienvanham
Junior Member
Junior Member
Posts: 12
Joined: 2014-01-11, 11:45 UTC

Post by *rienvanham » 2018-05-30, 10:13 UTC

Thank you Stefan2. I will try this.

rienvanham
Junior Member
Junior Member
Posts: 12
Joined: 2014-01-11, 11:45 UTC

Post by *rienvanham » 2018-05-30, 10:45 UTC

Hi Stephan2,

That does the job! Thanks a lot!

Regards, Rien

Post Reply