Help. Need to find, select, and move orphaned files

I have a set of files that have a sister file that must remain with it. ex. "example.mp3" and "example.cdr" in the same folder.

I have moved some of the "mp3" files to another directory.

I would like to search the original file folder to find and select all orphaned files. (Files that do not have a sister file)

How can I get Opus to find and select only the "mp3" files with no matching "cdr" file of the same name and/or "cdr" files with no matching "mp3" files of the same name.

I need to move the orphaned "cdr" files from the original directory into the new directory containing the "mp3"

With 28000 files I can't do this manually.

If I understand correctly, you now have a bunch of MP3 files in a target folder and a mix of MP3 and CDR in the source folder and you want to move the CDR files in source that match MP3 in target. Try this...

[ol][li]rename *.CDR to *.MP3 in the target folder and select all in the target folder[/li][li]switch to the source folder and >select DESTTOSOURCE to select all matching MP3[/li][li]switch to the target folder and rename *.MP3 to *.CDR[/li][li]switch to the source folder and move selected to target[/li][/ol]
Regards, AB

Here's another way you can do it without renaming any files:

Filter your folder to only show cdr files, and then select all of those files.

Remove the filter so you see the MP3s again then run this command:

@nodeselect Select PATTERN "{file$|noext}.*"

That should select all MP3 files whose names match the names of the selected CDR files.

Invert your selection and you should have your orphaned CDR files selected.

Note, this assumes you only have CDR and MP3 files in the folder.

Thanks for both of the quick responses. James, I'm very new to this program (Like only a few minutes of experience). I have no problem with the filter instructions. However, where do I type the code listed above?


Code: Select all
@nodeselect
Select PATTERN "{file$|noext}.*"


If you're really new to Opus, then I'd strongly suggest you learn the basics before attempting to solve your problem. Check the FAQ section for toolbars and button commands. The command I posted last time was for a button or menu entry.

[quote="JohnZeman"]@nodeselect Select PATTERN "{file$|noext}.*"[/quote]
A very neat solution John. I hadn't played with PATTERN before but this example demonstrates what a powerful tool it is.

Regards, AB

[quote="aussieboykie"]If I understand correctly, you now have a bunch of MP3 files in a target folder and a mix of MP3 and CDR in the source folder and you want to move the CDR files in source that match MP3 in target. Try this...

[ol][li]rename *.MP3 to *.CDR in the target folder and select all in the target folder[/li][li]switch to the source folder and >select DESTTOSOURCE to select all matching MP3[/li][li]switch to the target folder and rename *.MP3 to *.CDR[/li][li]switch to the source folder and move selected to target[/li][/ol][/quote]
My original post has CDR and MP3 reversed in some of the instructions. They should read...

[ol][li]rename *.MP3 to *.CDR and >Select ALL in the target folder[/li][li]switch to the source folder and >Select DESTTOSOURCE to select all matching CDR[/li][li]switch to the target folder and rename *.CDR back to *.MP3[/li][li]switch to the source folder and move selected (.CDR) to target[/li][/ol]
Apologies for any confusion.

Regards, AB :blush:

..and in any case, John Zeman's method is much neater.