i have a process wherein i am taking some before and after screenshots during the process and copying them into excel. At the end of the process, I am trying to delete the screenshot files but I keep getting this error. Before deleting I have closed the excel etc.
Delete: The process cannot access the file ‘C:\temp\20200122173811172\ReportOutputNew.png’ because it is being used by another process.
any pointers hot to avoid this ? I am able to delete the file manually.