I have written a VBA script that finds documents missing their file extensions (sloppy users) over a shared drive tree and writes the filename and path into a table.
I now have a list of some 900 documents out of a total 120,000 on the shared drive. Most of those will be Word or pdf format. I want to test each file to find its format and then add the appropriate extension. How can I test for the file format? Is there an alternative to looping through the files and trying to background open each file until it works? I suspect the machine running the code would run out of memory before it got to the end.
I now have a list of some 900 documents out of a total 120,000 on the shared drive. Most of those will be Word or pdf format. I want to test each file to find its format and then add the appropriate extension. How can I test for the file format? Is there an alternative to looping through the files and trying to background open each file until it works? I suspect the machine running the code would run out of memory before it got to the end.