Sign in to follow this  
Followers 0
ReFran

Get Pathname of File in Active Window

3 posts in this topic

Hello,

I want to get the path to a file executed in the active window. I know how to read the filename from title (Acrobat Reader - [Test.pdf]), but I need the full pathname of the file in the active Window (like: c:\documents\Reader\Test.pdf).

I tried also WMI. I got all information of the running Acrobat process, but not the path. Is it somehow possible - without using an extra DLL?

Thanks, Reinhard

Share this post


Link to post
Share on other sites



Hello,

try

-File

-Document Properties

For the german version of Reader 7.x :

WinWaitActive ( "Adobe Reader - " )
Send ("^d")
WinWaitActive ( "Dokumenteigenschaften" )
$text = WinGetText ( "Dokumenteigenschaften"  )
Send ("{ENTER}")
MsgBox ( 0, "All i can get:", $text)

Share this post


Link to post
Share on other sites

Hello,

try

-File

-Document Properties

Not really what I'm awaited, but real good. I didn't remember to this menuitem. I write/wrote a script that make fillable PDF-forms saveable with Reader only. Knowing the path makes it more flexible.

Because I have already to read text from a window/message box (field-names and field-values) I'm furtheron interested in a more direct solution. I'm realy astonished that it seems, I don't can get it via AutoIT or WMI.

Anyway, thanks Westi, nice idea and easy working solution.

Reinhard

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0