Select files

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Select files

Post by *sas2000 »

 
Hi, i don't know how to do this with TC.

I have 500 files in 30 directories, all these files are different but some of them have the same name but different extension (1.txt/1.doc), is it possible to make TC show me ONLY these files with same name and different extension on branch view ?.

I have read a message on the forum written about a year ago with a problem similar to mine but it didn't help me, is it possible to do it with TC 6 ?

Thanks.
 
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

I can imagine only way to do this: Use branch view -sort by name, select all files with same name (manually) and use [Alt]+[w] , [o] (Show only selecte files).

But I fear this is not what you want but do this automatically.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

2 sas2000

I would have followed the same approach as the one suggested here by Sheepdog.

The thing is that if your criteria apply on groups of similar conditions there is no easy way to apply automation. But if the different extensions are there for just a single similar filename, things are pretty easy.

e.g.

Easy case:

1.txt
1.doc
1.pdf
1.mp3

Complicated case:

1.txt
1.doc
1.pdf
1.mp3

2.txt
2.doc
2.pdf
2.mp3

3.txt
3.doc
3.pdf
3.mp3

What you actually need is this: cm_SelectCurrentExtension=527;Select all files with same ext. but for filenames and not extensions. This is not currently supported but if it did I cannot imagine how it would correctly work on the complicated case above.
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Unfortunatly file names are quite more complicated than your "Complicated case" example. :cry:

Thanks both of you.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Hi,

show TC search dialog and in search for field type your_file_name.* and then click Feed to list box button

is this help you?

thanks
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Hi ts4242, that way it doesn't work because there are too many file names.

I was searching for a way to be able to select only files with same name but that exist in more than 1 document format (1.txt VS 2.txt/2.rtf/2.pdf VS 3.rtf/3.pdf then 1.txt will not be selected) to be able to work only with these ones.

Thanks.
 
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Don't know, what you like to do with those files, but maybe the autorename option for copying is helpful for you? If you try to copy all files from branchview into a single folder and use in the copy dialog the option ([F5] then [alt]+[o]) 'auto-rename copied' (or 'auto-rename target files' ) and alter the *.* to *.test you get all files with same names as 'name(1).test' etc. Now you can filter all files without (1) and have a list of the double files.

Does it help any how?

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Hi, i have found a way a little complicated but it works.

I want to discard files that appear with the same name but on different document formats (same content) and without brake tree structure.

I have 500 files with 4 different extensions (TXT,RTF,DOC,PDF) on 30 directories, some files are only in 1 format some in more, and i want to keep only 1 copy of each and on this order of preference
TXT > RTF > DOC > PDF (so that if there are 2 copies of file A --> A.TXT/A.PDF i want to keep only A.TXT).

This is how i did it:

Branch view select *.TXT attribute +A
Branch view select *.RTF attribute +S
Branch view select *.DOC attribute +H
Branch view select *.PDF attribute +R

Branch view select *.RTF and rename it to *.TXT on this operation i will not permit overwrite existing ones.

Repeat this operation with DOC & PDF.

Use TC TREECOPY plugin to MOVE *.TXT files to a different location with tree structure.

Finally look for +S and rename to *.RTF
           look for +H and rename to *.DOC
           look for +R and rename to *.PDF

Maybe it's the most difficult/strange way to do it but... yesterday was   a hard day's night . :P

Thanks again, Sas.

 
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

You might be able to automate the above procedure with TCScriptEditor.
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Thanks pdavit, i will try it.
I have read somewhere that the next version of TC will integrate scripts, is this true ?

Bye.
 
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

No, that is not true.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply