Select files
Moderators: Hacker, petermad, Stefan2, white
Select files
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.
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
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
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.
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!!!
Christian Ghisler Rules!!!
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.
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
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
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 .

Thanks again, Sas.