How can I access an applications 'File Description'?

Sovereign :

I am attempting to get a list of open application names. I have had success in finding their path and executable name using libraries such as win32gui and win32process, but no avail in finding the file description.

For clarification, here is what I am trying to find: enter image description here

I can get the associative path and application name (Code.exe in this case), but I am looking for the 'Visual Studio Code' information.

It would also be nice to have access to other details, but this is not required.

jufer002 :

You might find the function called getFileProperties(fname) useful. It returns a dict which you can key into like this: ['StringFileInfo']['FileDescription']. The function is defined at the link below.

Python windows File Version attribute

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=194268&siteId=1