Search for file version in folders with variable names
3 posts
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
Until now, Network Scanner supported wildcards (* and ?) only in the final component of the path, so patterns like C:\Program Files\Folder*\File.exe didn't work.
Good news: we've just made a new build that supports wildcards anywhere in the path. So you can now use this patterns to accomplish your goal:
C:\Program Files\WindowsApps\MicrosoftCorporationII.Windows365*\Windows365.exe
It will find all folders matching MicrosoftCorporationII.Windows365* and return the file version of Windows365.exe within each.
You can even use multiple wildcards at different levels if needed:
C:\Program Files\Something*\*\app.exe