I'm trying to copy excel file from server shared folder to local system folder using windows service C#. But throw below error
The Microsoft Access database engine cannot open or write to the file It is already opened exclusively by another user, or you need permission to view and write its data.
Code:
string filename = @"\\Datawarehouse\Data\Result.xlsx";
string filePath = @"C:\Test\Result.xlsx";
System.IO.File.Move(filename , filePath);