Copy Path function in listbox

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
dusan
Junior Member
Junior Member
Posts: 15
Joined: 2003-04-04, 15:10 UTC
Location: Slovakia

Copy Path function in listbox

Post by *dusan »

Hi there,

I am using CopyPath form
http://home.worldonline.dk/ninotech/

I can use it to copy paths of multiple files in TC, however the problem arises after using search function and the result is feed to the listbox. CopyPath copy only the last path of the selected files. So I have to copy each path separately or use search option in the Windows explorer :cry:

Any idea how to solve it ?

Thank you,

Dusan Halamka
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

I don't know what CopyPath does, but guessing from the name...
Do you know about the following commands:

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

You can add them to your menu, or download some of the extended menus from this forum (use Search link).
User avatar
dusan
Junior Member
Junior Member
Posts: 15
Joined: 2003-04-04, 15:10 UTC
Location: Slovakia

Post by *dusan »

Thank you Valentino,

I didn't know about this function in Total Commander :shock:
It's not in the help file :(
That's great !!!!

I must addmit that this is the best File manager I ever used :D
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

dusan wrote:Thank you Valentino,

I didn't know about this function in Total Commander :shock:
It's not in the help file :(
That's great !!!!

I must addmit that this is the best File manager I ever used :D
None of the functions are in the help file.
You should read the file totalcmd.inc
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

I encountered the same problem as describd in tne first post. When i press Ctrl+C to copy selected files to clipboard file under cursor only copied. I cannot use cm_Copyxxx commands because i need to paste files themself to another application (not a filenames).

Any suggestion?
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Well I looked up the program you are using (Ninotech Path Copy), it does exactly what you scribed in the first post: copy the path and file names to the clipboard and NOT the file itself. So I dont understand your last post. Ctrl C has nothing to do with either Path Copy, nor TC, it is a Windows feature.
I switched to Linux, bye and thanks for all the fish!
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

@SanskritFritz
You are referring to the wrong person, the OP is [dusan], your reply is to [VadiMGP] hence out of context.

@VadiMGP
Erm, I guess you already know this, but what you describe shouldn't happen... here it works perfectly OK, unless your system is 16bit or you have remapped ctrl+C to something else, it should work.

Cheers.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2JackFoo
Erm, I guess you already know this, but what you describe shouldn't happen... here it works perfectly OK, unless your system is 16bit or you have remapped ctrl+C to something else, it should work.
No; I don't think so. You cannot Copy multiple files to clipboard after feed to listbox. More general: Windows shell functions don't work for a multiple selection after feed to listbox (file properties). From my point of view it's a bug. It works fine in branch view.
jb
Senior Member
Senior Member
Posts: 412
Joined: 2003-02-09, 22:56 UTC
Location: Switzerland

Post by *jb »

VadiMGP wrote:I encountered the same problem as describd in tne first post. When i press Ctrl+C to copy selected files to clipboard file under cursor only copied.
Seems to be a little inconsistency of TC. Oddly enough the problem occurs in the listbox containing a search result, but not in "Branch View (With Subdirs) Ctrl+B" which can contain files of multiple directories similar to the search listbox. :?

PS to Lefteous:
Sorry, I started my reply before I saw yours.
Last edited by jb on 2003-09-04, 10:33 UTC, edited 1 time in total.
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Hmm, yes I was referring to the branch view... weird indeed.

Cheers.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

Yes, it seems to be bug in TC. Of course, in some cases Branch View give me a solution (with relative small number of files located on the same disk). The problem still with search across hundreds files on several disks. :( Welll, i hope in TC 6.0 it will be fixed.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's impossible to copy more than one file/path in the search result, because the context menu functions only work with files in a certain base directory, not from multiple dirs.
Author of Total Commander
https://www.ghisler.com
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

Why it is impossible? I didn't find any restriction not in Platform SDK help nor in MSDN KB. Anyway, for all files always exist base folder - Desktop. Moreover, look at standard Explorer behaviour: after search it is possible to copy any number of files from search result window even when files located on different disks.
Peter Meier
Junior Member
Junior Member
Posts: 7
Joined: 2003-08-30, 19:22 UTC

Post by *Peter Meier »

I'd like to see this bug/feature solved, too: I use standard windows dialog to set/unset readonly flag and more important ClearCase checkin/checkout.

BTW: CopyPath is a friend of mine, too!!!

PS: I asked the same question in German forum http://ghisler.ch/board/viewtopic.php?t=809
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2VadiMGP

Do you know which API function Explorer uses to display the property dialog?

EDIT: Maybe SHOpenPropSheetW (a really well documented and easy to use function :twisted: )?
Post Reply