Delete Directory : Directory : File Directory Stream C# Examples


C# Examples » File Directory Stream » Directory »

 

Delete Directory









    
using  System;
using  System.IO;

class  MaionClass
{
    public  static  void  Main(String[]  args)
    {
        try
        {
            Directory.Delete(@"C:\WinNT\MyFoo");
            Directory.Delete(@"C:\WinNT\MyBar",  true);
        }
        catch(IOException  e)
        {
            Console.WriteLine(e.Message);
        }
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» Directory