I would like to search for all .doc files and all .pdf files whose filenames are the same. How ca
I have about 1,500 .doc files on my computer. I have printed many of them to PDF. I would like to print pdf files for all the .doc files that do not yet have pdf files.
To do this, I would like to list all .doc files and their pdf files regardless of whether they have pdf files or not. The file list should look like this:
<filename 1>.doc
<filename 1>.pdf
<filename 2>.doc (no pdf file)
<filename 3>.doc (no pdf file)
<filename 4>.doc
<filename 5>.pdf
...and so on.
How would I do that?
[Solved] List All .Doc Files That Have Associated PDFs
[Solved] List All .Doc Files That Have Associated PDFs
Last edited by skeezix on Wed Dec 11, 2024 1:10 am, edited 1 time in total.
Re: List All .Doc Files That Have Associated PDFs
UPDATE:
I found the answer in the FAQ:
Search Term: d: .doc |.pdf
Gives me exactly what I need.
I found the answer in the FAQ:
Search Term: d: .doc |.pdf
Gives me exactly what I need.
Re: List All .Doc Files That Have Associated PDFs
exact:<*.doc fileexists:$stem:.pdf> | <*.pdf fileexists:$stem:.doc>
exact: refers to the file extension .doc
This is to avoid that files with the file extension .docx are also taken into account.
Re: List All .Doc Files That Have Associated PDFs
And with a little cheating (which comes in handy if more than two extensions need to be compared):
I even wrote a pairs: filter for this (syntax: pairs:.doc;.txt;.gif;... ), but that was deleted (I delete most of the stuff I do).
Probably wouldn't work with the new preprocessor syntax anyway.
Will rewrite it when time permits as it looks to be somewhat useful after all ..
Code: Select all
ext:doc;pdf exact:fileexists:$stem:.doc exact:fileexists:$stem:.pdf
Probably wouldn't work with the new preprocessor syntax anyway.
Will rewrite it when time permits as it looks to be somewhat useful after all ..