How to copy a pst file while it is open using c# [duplicate]
问题 This question already has answers here : How to copy a file while it is being used by another process (5 answers) Closed 6 years ago . Is it possible to copy a pst file using c# with outlook open? Here is the code i have got already but it still gives me the error :The process cannot access the file 'filepath' because it is being used by another process. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO;