Problem with cm_CopyNamesToClip and similar cmds

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
jb
Senior Member
Senior Member
Posts: 412
Joined: 2003-02-09, 22:56 UTC
Location: Switzerland

Problem with cm_CopyNamesToClip and similar cmds

Post by *jb »

The commands cm_CopyNamesToClip, cm_CopyFullNamesToClip, and cm_CopyNetNamesToClip of TC 5.51 ignore the ".." entry (parent directory).
If ".." is focused and no other directory entry (file or subdirectory) is selected then a message box pops up saying "No files selected!".
If ".." is part of multiselection then it is just ignored as already mentioned.

I think it would be great if ".." would be handled as any other directory entry.

BTW:
Command cm_CopySrcPathToClip copies the path of "..", but it is not a satisfying solution for me because:
I strive to use a minimal set of commands.
I have limited screen area for buttons and limited reasonable keyboard shortcuts.
cm_CopySrcPathToClip does not help if you want the name or the net name of "..".
jb
Senior Member
Senior Member
Posts: 412
Joined: 2003-02-09, 22:56 UTC
Location: Switzerland

Re: Problem with cm_CopyNamesToClip and similar cmds

Post by *jb »

jb wrote:BTW:
Command cm_CopySrcPathToClip copies the path of "..",
No, cm_CopySrcPathToClip copies the path of "." (current directory). :oops:
jb
Senior Member
Senior Member
Posts: 412
Joined: 2003-02-09, 22:56 UTC
Location: Switzerland

Post by *jb »

In the meantime I checked the SpeedCommander V9.1 (SC) regarding this topic. The results are:

SC supports commands similar to cm_CopyNamesToClip and cm_CopyFullNamesToClip. Although they operate only on the focused entry (=> multiselection is ignored), they work also if the focused entry is ".."! Assume that the current directory is "C:\1\2\3\". If the focused entry is ".." then SC.cm_CopyFullNamesToClip returns "C:\1\2\3\.." and SC.cm_CopyNamesToClip returns "..". That's a solution.

Another solution would be "C:\1\2\" (reduced form with TC-like trailing \) and "2\" (last part of reduced form), respectively.
Post Reply