Delete directory
In this chapter you will learn:
Delete Directory
using System;/*from j a va 2 s . co m*/
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);
}
}
}
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » File, Path