Skip to main content
Participant
Nov 22, 2021 9:09 AM UTC
Question

How to get all opened file paths at once?

I use Acrobat reader DC (version 2021.005.20058) on windows 10. 
I usually open many pdf files on the software. 
I would like to get all opened pdf file paths at once. 

 
I know that I can get a file path in the document property window for a single file. 
But what I would like to do is that to get opened pdf file paths by a single operation,  some codes, or a plug-in, not to get the paths one by one. 

 

Is there any way of this?
Thank you in advance.   

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

try67
Community Expert
Community Expert
Nov 22, 2021 9:08 PM UTC

In order to do it from Reader you have to run the code from a trusted context, such as a .js file installed in a specific folder on the local machine.

Translate
Participant
Nov 23, 2021 10:54 AM UTC

Thank you for telling me the way.
Cloud you tell me where to get such codes?

Translate
try67
Community Expert
Community Expert
Nov 23, 2021 2:07 PM UTC

This is the basic code that does it:

 

for (var i in app.activeDocs) console.println(app.activeDocs[i].path);

Translate
EMJones
Inspiring
Nov 22, 2021 1:42 PM UTC

This can be done with Powershell.

Prerequisite (Only have to do this once): Open elevated Powershell (Run as Administrator), type OpenFile /local on

 

Reboot.

After reboot, re-launch Admin Powershell, and run OpenFiles /query /FO CSV | findstr /i ".pdf" > "C:\users\<username>\desktop\OpenFiles.csv"

 

This will give you a .csv file. You can adjust the path to your choosing.

Here's a cheat sheet if you want to change things up. https://ss64.com/nt/openfiles.html

Translate
Participant
Nov 23, 2021 10:54 AM UTC

Thank you for telling me the way.
It works!
But I'm afraid Openfiles will slow down my system as Microsoft says.
I would like to know also other ways.

 

I tried a software named OpenFilesView, but I couldn't get all file paths I opened.
It seems that we can get file paths of only the file opened with the standard open dialog-box of windows.

Translate