VBA or VBS enumerate all open Acrobat Reader documents
Posted on 2011-02-12
I want to (in some type of code) find all the pdf files that are open in Acrobat Reader (I only have Reader)
Since I don't have Acrobat Pro, I can't get any API calls to work (e.g. GetObject(, "AcroExch.App"))
The solution to the related link (searching running tasks) doesn't work since it only finds the first one, and that only if the pdf was double clicked (since it parses the shell command that started the process).
I need the entire path of the files. I had the idea to try to capture it from the open windows, but don't know how well that would work since only the file name shows and it's formatted differently in XP and 7.