Advanced Features

I am a long term Opus user but have used advanced features on a limited basis. I now have a need that I believe Opus can handle but I don't know how to begin and hoped to receive some help. I have a large data base of completed projects in subfolders. All projects have a DWG file that is saved in a subfolder of the project subfolder. All DWG files have been converted to PDF and saved in the same folder. I need to have a search string to locate all the DWG files, compare and confirm they have a matching PDF file, then copy all matched PDF files to a separate subdirectory. What steps should I take to complete this operation?

It may be possible to do that using some scripting, but it will require a custom script be written.

What exactly is meant by "compare and confirm they have a matching PDF file"? Just checking for the existence of a file with the same name but .PDF extension in the same folder, or something extra like checking the contents of the PDF?

What happens if there isn't a matching PDF file? (e.g. Because it has been moved to the separate subdirectory in the past, or because one was never generated. Does the script need to work out which or would it handle both in the same way?)

A simple confirm there is a PDF and a DWG file with the same file name is sufficient.

We will be glad to pay someone to write this script for us.

Thank you.