I made a discovery a while ago. Just follow these steps:
Create a .doc / .xls / .ppt file in the office. Save some test data and close the file. Now rename the file to change its file extension to a random line, taking care that it is unattached, for example test.asdfghjkl, etc. Double-click the file and it will open in the parent application.
Now AFAIK, the window checks the file extension of the file and uses it to perform an action, namely: open the application and transfer the file to open it. Then how does an office suite handle this?
EDIT: how about a case where the extension has been changed to another one associated with another application. Is there a priority algorithm to handle this?
ms-office file-association
Vaibhav garg
source share