Keyboard shortcut to send filename to clipboard?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sekular
Member
Member
Posts: 104
Joined: 2009-07-02, 19:39 UTC

Keyboard shortcut to send filename to clipboard?

Post by *sekular »

Is there a keyboard shortcut to send the highlighted filename to the clipboard or the full path?

Say for example I want to rename a video file to the name of the folder that it has just been extracted out of.

I would click a few times to make the folder renameable and then ctrl+c and do the same on the filename and then ctrl+v.

If there was a way to just press a key command and send the filename in to the clipboard and then paste it on to another file name with another keyboard command to rename it.
User avatar
petermad
Power Member
Power Member
Posts: 16157
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

To copy filename to Clipboard use: cm_CopyNamesToClip
To copy path + filename to Clipboard use: cm_CopyFullNamesToClip
To copy network-name to Clipboard use: cm_CopyNetNamesToClip
To copy the path from the source side to Clipboard use: cm_CopySrcPathToClip
To copy the path from the target side to Clipboard use: cm_CopyTrgPathToClip

You can also copy to the command line if that is more convenient:
To copy filename to command line use: Ctrl+Enter.
To copy current path to command line use: Ctrl+P.
To copy path + filename to command line use: Shift+Ctrl+Enter.
To see previous commands in command line use Ctrl+E (consecutively) or use Ctrl+DownArrow (also consecutively)
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, sekular.

You seem to have missed the following menu item(s) in Total Commander:
  • Mark => Copy selected names to clipboard
  • Mark => Copy names with path to clipboard
  • Mark => Copy to clipboard with all details
  • Mark => Copy to clipboard with path+details
In addition to these 4 menu items, there are more related internal T.C. commands which can be found inside the file %commander_path%\totalcmd.inc and which can be assigned to (new) button in the buttonbar and/or to a self-defined keyboard combination.
totalcmd.inc section 'Clipboard' wrote:cm_CopyNamesToClip=2017;Copy filenames to clipboard
cm_CopyFullNamesToClip=2018;Copy names with full path
cm_CopyNetNamesToClip=2021;Copy names with UNC path
cm_CopySrcPathToClip=2029;Copy source path to clipboard
cm_CopyTrgPathToClip=2030;Copy target path to clipboard
cm_CopyFileDetailsToClip=2036;Copy all shown columns
cm_CopyFpFileDetailsToClip=2037;Copy all columns, with full path
cm_CopyNetFileDetailsToClip=2038;Copy all columns, with UNC path
HTH,
Karl
--
Oh, petermad beat me by 5 minutes, but only because our cat urgently asked for personal attention. Cats' requests are always extremely urgent. :wink:
sorcar
Member
Member
Posts: 100
Joined: 2005-04-12, 17:45 UTC
Location: U.S.

Post by *sorcar »

Oh, petermad beat me by 5 minutes, but only because our cat urgently asked for personal attention.
Karlchen, the sense of humor of the like you makes this a friendly forum. I see Petermad also beat you in membership by a day!
Post Reply