Access to the path denied
Access to the path denied!
Geliştirmelerimizde herhangi bir adreste yapacağımız dosya Kopyalama/Silme/Güncelleme işlemlerinde alınan "Access to the "path" denied" hatasının çözümü için aşağıdaki çözüm uygulanabilir.
Silme İşlemi: Delete File
File.SetAttributes(filePath, FileAttributes.Normal);
File.Delete(filePath);
Kopyalama İşlemi: Copy File
Kopyalama İşlemi: Copy File
File.Copy(resourceFilePath, destinationFilePath, true);
File.SetAttributes(destinationFilePath, FileAttributes.Normal);

Yorumlar
Yorum Gönder