How to copy short path in TC?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Li Yongzhen
Junior Member
Junior Member
Posts: 64
Joined: 2010-04-04, 10:46 UTC

How to copy short path in TC?

Post by *Li Yongzhen »

Sometimes, perhaps we have to use short path. who can tell how to copy in TC? thanx
Jon Canale
Member
Member
Posts: 142
Joined: 2003-02-07, 12:54 UTC

Post by *Jon Canale »

I couldn't find a way to do it in TC (other than using a wdx plugin perhaps).

I use Path Copy Copy program and right click on the file.

http://pathcopycopy.codeplex.com/

This replaces the old Ninotech Path Copy program, which is no longer available and didn't work on the newer operating systems.
User avatar
sidefx88
Senior Member
Senior Member
Posts: 294
Joined: 2007-04-11, 17:07 UTC
Location: Argentina

Post by *sidefx88 »

Very interesting question!

But I couldn't find a way to do it just using TC. I think it is not implemented.

You should post this suggestion in the Suggestion forum ;)
I support, of course!
I Love Total Commander!
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2Li Yongzhen:
Currently there is no such single command at TC, but you can use some workarounds.

To get the short name of a single file, just drag the filename to the TC commandline.
To get the full path (incl. filename) of selected files, you may use the TC filelist command together with DOS command.

Take this button as an example (just copy the following text and paste it to your TC buttonbar)

Code: Select all

TOTALCMD#BAR#DATA
cmd.exe /k
type %l
%COMMANDER_EXE%,2
List short path


-1
#5767 Personal license
User avatar
petermad
Power Member
Power Member
Posts: 16157
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hold down Shift+Ctrl and drag the file name to the command line to get the short path (including short file name).

EDIT: Actually, it is enough to hold down Shift while dragging.


Or use the command cm_SwitchLongNames to toggle the display of long filenames.
Last edited by petermad on 2012-03-03, 21:34 UTC, edited 1 time in total.
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
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Try the plugin "List2Clip"

Download here:
http://lefteous.totalcmd.net/tc/lst2clip_eng.htm

Discussion here:
http://ghisler.ch/board/viewtopic.php?t=1853

Peter
TC 10.xx / #266191
Win 10 x64
Post Reply