Jump to content

How do I find the process of an open file?


Recommended Posts

Thanks to the help on this forum I can get all the processes of applications running and their file paths. However I cannot seem to get the same information (In particular the path to the file) for a file opened by an application, for example a word document viewing a doc file or Adobe viewing a jpg file.

Do PID's exist for these items?

Is it possible to get the path to these open files?

Thanks

Link to comment
Share on other sites

Bump

A way enumerate child windows, find their path ...

If it cannot be done someone put me out of my misery and I'll stop searching :)

Cheers

_PathFull()

and

_ProcessGetName()

sorry for the late reply , hope you see my reply;;;

Link to comment
Share on other sites

Thanks I will search the forums for their usage. Do you have any examples of how to use?

ehh you probably dont know of the most important help you can get for autoit, the HELP FILE in scite...

check it;;;

1. _PathFull():

    #include <File.au3>

       _PathFull ( $szRelPath )

#include <file.au3>
$TestPath = _PathFull(@ScriptDir & "..\..\test")
MsgBox(0,"demo _PathFull",@ScriptDir & @lf & $TestPath)oÝ÷ Ûú®¢×¶>ºzËzÓZꮢעÉnuém>ºzË»x->ºzËzÓZí7ê#È
«­¢+Ø¥¹±Õ±ÐíAɽÍ̹ÔÌÐì()IÕ¸ ÅÕ½Ðí¹½ÑÁ¹áÅÕ½Ðì¤)]¥¹]¥ÑÑ¥Ù ÅÕ½ÐíU¹Ñ¥Ñ±´9½ÑÁÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(ÀÌØíÁ¥ô]¥¹ÑAɽÍÌ ÅÕ½ÐíU¹Ñ¥Ñ±´9½ÑÁÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(ÀÌØí¹µô}AɽÍÍÑ9µ ÀÌØíÁ¥¤()5Í    ½à À°ÅÕ½Ðí9½ÑÁ´ÅÕ½ÐìµÀìÀÌØíÁ¥°ÀÌØí¹µ¤

Also you can find help in here...

but help file is the most complete place with commands for autoit(exampls etc..)

Link to comment
Share on other sites

Not sure how those will do what I want. I don't want the parent window path I can do that and close it, I am after the child window path, that is the path to the file window opened within an application window.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...