How to copy file path and file name to the clipboard?

English support forum

Moderators: white, sheep, Hacker, Stefan2

Post Reply
whatislove6688
New Member
New Member
Posts: 1
Joined: 2018-11-09, 04:20 UTC

How to copy file path and file name to the clipboard?

Post by *whatislove6688 » 2018-11-09, 09:11 UTC

Hi, I would like to know if there's a (hidden) command to copy the full path and filename of a selected file to the clipboard. Until now, I've been using a workaround with a line command like "dir > filename.txt".

If this isn't possible, it may be a useful suggestion to add such a comand to a menu in the next release.

Kind regards, :D :D :D

User avatar
obeg
Junior Member
Junior Member
Posts: 24
Joined: 2006-09-28, 09:20 UTC
Location: Sweden

Re: How to copy file path and file name to the clipboard?

Post by *obeg » 2018-11-09, 09:40 UTC

Hi

There is no hidden way to do this out of the box. As you know there is a menu item called "Mark" => "Copy Names With Path to Clipboard"

But you can create an alias for it, making it to a command.
So go to Conifguration => Options ..
Then select Misc.
Select "Alias:" in Redefine hotkeys
Choose an alias that is good for you. I use cm (short for copy marked)
and serach for command cm_CopyFullNamesToClip

Then just select the files wanted and type cm + Enter and there you are.
Last edited by obeg on 2018-11-09, 10:30 UTC, edited 1 time in total.

User avatar
Stefan2
Power Member
Power Member
Posts: 2170
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to copy file path and file name to the clipboard?

Post by *Stefan2 » 2018-11-09, 10:02 UTC

Or assign a keyboard shortcut from the same dialog as obeg mentioned.
Set the key combination, then click the [magnifying glass] icon and filter by typing c,o,p,y...





 

User avatar
petermad
Power Member
Power Member
Posts: 8055
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: How to copy file path and file name to the clipboard?

Post by *petermad » 2018-11-09, 11:45 UTC

If you don't want to make a shortcut for cm_CopyFullNamesToClip, then you can copy the full path and name to the command line with Ctrl+Shift+Enter and then copy the command line to clipboard (ArrowRight, Ctrl+X)
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.92b1 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
obeg
Junior Member
Junior Member
Posts: 24
Joined: 2006-09-28, 09:20 UTC
Location: Sweden

Re: How to copy file path and file name to the clipboard?

Post by *obeg » 2018-11-09, 13:34 UTC

Ctrl+Shift+Enter was new to me. Thanks for that!

But to get it to to clipboard I need to use (Shift+ArrowRight, Ctrl+X).

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3104
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to copy file path and file name to the clipboard?

Post by *Horst.Epp » 2018-11-09, 16:41 UTC

obeg wrote:
2018-11-09, 13:34 UTC
Ctrl+Shift+Enter was new to me. Thanks for that!

But to get it to to clipboard I need to use (Shift+ArrowRight, Ctrl+X).
Its much easier to make a button, so its just one click.

Code: Select all

TOTALCMD#BAR#DATA
cm_CopyFullNamesToClip

WCMICONS.DLL,45
Copy full path to clipboard

0
2018

Windows 10 Home x64 October 2018 Update
Version 1809 (OS Build 17763.104)
TC 9.21a x64 and x86, Everything 1.4.1.921 (x64)

Post Reply