Years ago I wrote a powershell script to be run automatically every night to convert 2 files from .xls to .csv.
The server this ran on is being retired as it's a Windows 2008 server and I'm moving to a 2016 server for my automated tasks.
I have an error log function that I built (with help from existing sources) to capture any errors during processing and it emails me if the task fails with detailed output.
Since I've moved the script to the 2016 server, I've run into a situation where every time I attempt to run the script via task scheduler, it fails with the following error:
----
Error: An error has occurred [System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Excel cannot access the file 'C:\fbserver\FTP\CRM Membership.xls'. There are several possible reasons:
• The file name or path does not exist.
• The file is being...