Skip to main content
Participant
November 22, 2021
Question

How to get all opened file paths at once?

  • November 22, 2021
  • 2 replies
  • 1173 views

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 has been closed for replies.

2 replies

try67
Community Expert
Community Expert
November 22, 2021

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.

Participant
November 23, 2021

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

try67
Community Expert
Community Expert
November 23, 2021

This is the basic code that does it:

 

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

EMJones
Inspiring
November 22, 2021

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

Participant
November 23, 2021

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.