My question is, how can I get the path of a specific program in windows for this case suppose word that the default executable is WINWORD.EXE .
But even though the executable is the same in any version, it is not the same route in any machine.
Then
How could I obtain the path in this case from WINWORD.EXE
Example: obetner the xxxxx fields, regardless of the pc C: \ xxxxx \ xxxxx \ xxxx \ xxxxx \ WINWORD.EXE
NOTE:
Some time ago I read something about os.walk () I do not know if this can be implemented in this case