C# Deleting Directories
I'm working with the .NET Compact Framework 3.5 and want to delete some specific folders and their subfolders. When I run the app it gives IO exception . I've tried to use Directory.Delete(path) method but it didn't work. How can I solve this problem? Here is my code : using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Collections.Generic; using System.Windows.Forms; namespace Reset_Client { static class Program { static void Main(){ myfunc(); MessageBox.Show("Cihaz resetlendi!"); } public static void myfunc() { string mainPath = @"\Storage Card\deneme";