Is there any way to search for a file version in a folder where the end of the folder name may change depending on the version of the file in question?
Example: I need to determine the file version of "Windows365.exe in C:\Program Files\WindowsApp\. The folder where the file is always starts with \MicrosoftCorporationII.Windows365, but depending on the version installed it will have the version appended to it, such as
C:\Program Files\WindowsApps\MicrosoftCorporationII.Windows365_2.0.804.0_x64__8wekyb3d8bbwe\Windows365.exe
Thanks