The act of opening and re-saving the old format office files happens rather quickly, and I suspect this causes a large CPU usage load due to explorer.exe constant processing the recent files. This happens in real-time as I step through the code and it causes the CPU usage spike from the explorer.exe process. SaveAs2() is called the new file shows up in the list. Open() is called, the original file shows up in the list and when.
I am running this code on directories that contain in the upper thousands, some even break into 5 digit counts, of Office files in the old non-xml format. However, I am having difficulties in stopping this undesired behavior and searching the internet only seems to give me results on how to keep the files from showing up in the 'Recent Files' list of the office applications themselves, not Windows File Explorer. The code itself works fine for my purposes I've only copied a small portion with surround relevant code. When opening and saving Word/Excel documents using the following code, the files that are opened and saved are being added to the Recent Files of Windows File Explorer (see screenshot).