i am using simple File.Copy and File.Delete basically first i copy my file from one folder to another than i call File.Delete to Delete From Previous folder but when compiler comes on File.Delete it give me error of

The process cannot access the file with File.Copy and File.Delete my code is.

  if (!Directory.Exists(copyPath))
                File.Copy(filefullpath, copyPath);

although it copy file into copyPath but delete is giving error.

Related posts

Recent Viewed