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:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|