Is there any way to interrogate a file to see if it is an Excel document without looking at the extension?
I have a situation where I need to convert a number of files to PDF (from Excel and Word). In some instances, I am finding files that have been saved with a .doc extension, but are really Excel files. I have renamed a few to .xls and they launch just fine in Excel. They show up in the finder as Word 95 docs, I guess because they are binary and have a .doc extension.
Is there some standard header or text in Excel that I can string search for (in powershell) to distinguish mis-named files.