Код: Выделить всё
if (Directory.Exists("BarCodePNG"))
{
Directory.Delete("BarCodePNG", true);
}
if (Directory.Exists("BarCodeJPG"))
{
Directory.Delete("BarCodeJPG", true);
}
if (Directory.Exists("BarCodeJoinJPG"))
{
Directory.Delete("BarCodeJoinJPG", true);
}
if (Directory.Exists("output.pdf"))
{
Directory.Delete("output.pdf", true);
}
System.IO.IOException: «Процесс не может получить доступ к файлу «2072675160.png» потому что она используется другим процессом.'
Где я хочу, чтобы папка была принудительно удалена
Подробнее здесь: https://stackoverflow.com/questions/764 ... ile-inside