2

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.

martineau
  • 119,623
  • 25
  • 170
  • 301
Sovereign
  • 53
  • 4

1 Answers1

4

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

jufer002
  • 128
  • 5