How do i flag files with same name but different extensions?
Moderators: Hacker, petermad, Stefan2, white
How do i flag files with same name but different extensions?
Hi
I encode many many small video clips to mpeg from various other video formats, avi, mov etc, i have 2 folders, one contains the original files(VIN) and the other contains the encoded processed Mpegs(VOUT).
The problem i have is some of the original files, do not encode for various reasons, which doesn't matter here.
I need to know of the command or feature in TC that can mark the Dupe filenames REGARDLESS of the file-extension, which do not appear in both folders and/or DO appear in both folders.
This is so i can encode the failed files via an alternative method and delete the unwanted completed files in [VIN]. Each folder contains 100's of clips, manually comparing by sort methods is tedious at best.
I hope u understand what im trying to explain, if not please ask tell me to clarify more.
regards
Lawz
I encode many many small video clips to mpeg from various other video formats, avi, mov etc, i have 2 folders, one contains the original files(VIN) and the other contains the encoded processed Mpegs(VOUT).
The problem i have is some of the original files, do not encode for various reasons, which doesn't matter here.
I need to know of the command or feature in TC that can mark the Dupe filenames REGARDLESS of the file-extension, which do not appear in both folders and/or DO appear in both folders.
This is so i can encode the failed files via an alternative method and delete the unwanted completed files in [VIN]. Each folder contains 100's of clips, manually comparing by sort methods is tedious at best.
I hope u understand what im trying to explain, if not please ask tell me to clarify more.
regards
Lawz
Re: How do i flag files with same name but different extensi
-Lawz- wrote:Hi
I encode many many small video clips to mpeg from various other video formats, avi, mov etc, i have 2 folders, one contains the original files(VIN) and the other contains the encoded processed Mpegs(VOUT).
The problem i have is some of the original files, do not encode for various reasons, which doesn't matter here.
I need to know of the command or feature in TC that can mark the Dupe filenames REGARDLESS of the file-extension, which do not appear in both folders and/or DO appear in both folders.
This is so i can encode the failed files via an alternative method and delete the unwanted completed files in [VIN]. Each folder contains 100's of clips, manually comparing by sort methods is tedious at best.
I hope u understand what im trying to explain, if not please ask tell me to clarify more.
regards
Lawz

Whether I understood your request alright, you want for know what are the fake-coded files in the target-dir. ?




Friendly regards
Claude
Clo
Last edited by Clo on 2003-12-17, 08:08 UTC, edited 1 time in total.
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Re: How do i flag files with same name but different extensi
Use Compare Directories. You are able to use wildcards in the file filter box e.g. clip.* etc.-Lawz- wrote:I need to know of the command or feature in TC that can mark the Dupe filenames REGARDLESS of the file-extension, which do not appear in both folders and/or DO appear in both folders.
Regards,
Baz
Baz
I too am not sure what you are asking for, but I have asked for something along the lines of A+GrayPlus. This selects all files with the same extension. I want to select all files with the same name and different extensions. I need this all the time, but not too many other people seem to care about it.
Maybe I do see what you want... I have 1000 C routines that I compile into a subdirectory. How do I find out whether any of those compiles failed? I have to see if there exists a filename.obj in one dir corresponding to each filename.c in another. My solution to this was to write a Perl program. Don't know if that helps...
Maybe I do see what you want... I have 1000 C routines that I compile into a subdirectory. How do I find out whether any of those compiles failed? I have to see if there exists a filename.obj in one dir corresponding to each filename.c in another. My solution to this was to write a Perl program. Don't know if that helps...
Maybe I do see what you want... I have 1000 C routines that I compile into a subdirectory. How do I find out whether any of those compiles failed? I have to see if there exists a filename.obj in one dir corresponding to each filename.c in another. My solution to this was to write a Perl program. Don't know if that helps...[/quote]
Hi
Yes chasbas
Exactly the same scenario,your compiled code in one dir and the source in another, same filename but different extension.
Hmm, sounds like a non current TC feature (Christisan!!), a work around ive incorporated now, once processed, is to rename all the files in the original folder to mpg, then compare to processed folder, invert the selection then delete them, whats left i rename back to avi or whatver and reprocess in another app. Quicker than manual checking/deleting i guess.
Thanks everyone, for spending the time to try help.
-Lawz-
Hi
Yes chasbas
Exactly the same scenario,your compiled code in one dir and the source in another, same filename but different extension.
Hmm, sounds like a non current TC feature (Christisan!!), a work around ive incorporated now, once processed, is to rename all the files in the original folder to mpg, then compare to processed folder, invert the selection then delete them, whats left i rename back to avi or whatver and reprocess in another app. Quicker than manual checking/deleting i guess.
Thanks everyone, for spending the time to try help.
-Lawz-
2-Lawz-
I hope I understood your request:
Here is a workaround (not a solution)
Given: Folder VIN with *.avi files and a VOUT folder with *.mpeg files.
1. Rename all files in VOUT to *.avi using the Multi rename tool.
2. Now use Synchronize directories. Uncheck "ignore date" and "by content". Now play with the "singles"- and "duplicates"-buttons to get the requested informations.
3. Now open the Multi rename tool again and simply press undo.
I hope I understood your request:
Here is a workaround (not a solution)
Given: Folder VIN with *.avi files and a VOUT folder with *.mpeg files.
1. Rename all files in VOUT to *.avi using the Multi rename tool.
2. Now use Synchronize directories. Uncheck "ignore date" and "by content". Now play with the "singles"- and "duplicates"-buttons to get the requested informations.
3. Now open the Multi rename tool again and simply press undo.
I don't know if you use Perl or not, but here is a small program that compares two directories for files without all that copying and renaming:
You can change the defaults it uses (including the directories), and the way it outputs the results (right now just a comma separated list of file names). It shows the files with the chosen extension that are in one directory but don't exist with the other extension in the other directory, and vice-versa.
Hope this helps.
Code: Select all
# take parameters from command line - if not there, assign a default
$extension1 = "c";
$dir1 = $ARGV[0] || "*.$extension1";
$extension2 = "obj";
$dir2 = $ARGV[1] || "obj\\*.$extension2";
@master_files = map { /(.*\\)?(.*)\./; $2 } glob $dir1;
@dependent_files = map { /(.*\\)?(.*)\./; $2 } glob $dir2;
@master_files{@master_files} = 1;
@extra_dependent_files{@dependent_files} = 1;
delete @master_files{@dependent_files};
delete @extra_dependent_files{@master_files};
print "Extra Master Files: " . (join ",", keys %master_files) . "\n";
print "Extra Dependent Files: " . (join ",", keys %extra_dependent_files) . "\n";
Hope this helps.
2chasbas
Simply perform another multi rename action with swapped entries for search & replace for example, if undo is no longer available.I prefer to have a backup if I'm going to rename large numbers of files and rely on "undo" to rename them back. What if I accidently close TC or do another Multi-Rename before undo-ing?