These files may or may not have a .pdf extension counterpart somewhere on the drive, ie:brn008077cf04db_014868.REC
brn001ba9ca5166_015479.REC
brn008077cf04db_015727.REC
brn008077cf04db_015767.REC
brn008077cf04db_015982.REC
brn008077cf04db_016928.REC
brn008077cf04db_016600.REC
brn008077cf04db_016679.REC
brn008077cf04db_016828.REC
brn008077cf04db_017322.REC
brn008077cf04db_017431.REC
brn008077cf04db_017478.REC
I want to get a list of all the .REC files that do not have a corresponding .PDF extension file, and ideally would like the full path to the file (ie, like dir FILENAME /s/b would display).brn008077cf04db_014868.PDF
brn008077cf04db_016600.PDF
brn008077cf04db_017431.PDF
So for my above example, the list would look like:
I know various ways to do this, but all are clunky (writing list to file and then searching every base filename through the whole drive or a list of all the files on the drive). I know there's an elegant (and faster/easier) way to do this, but don't have the knowledge. Any assistance appreciated. Thank you!\\scanner1\brn001ba9ca5166_015479.REC
\\scanner7\brn008077cf04db_015727.REC
\\scanner1\test\brn008077cf04db_015767.REC
\\scan5\test8\brn008077cf04db_015982.REC
\\blep\blop\brn008077cf04db_016928.REC
\\drive\path\brn008077cf04db_016679.REC
\\folder\folder\folder\brn008077cf04db_016828.REC
\\camel\camel\camel\brn008077cf04db_017322.REC
\\server\share\brn008077cf04db_017478.REC