Directory.Exists : Directory « System.IO « C# / C Sharp by API






Directory.Exists

 
using System;
using System.IO;

static class MainClass
{
    static void Main(string[] args)
    {
        Console.WriteLine(Directory.Exists("c:\\"));

    }
}

   
  








Related examples in the same category

1.Directory.CreationTime
2.Directory.Delete
3.Directory.GetCurrentDirectory()
4.Directory.GetFiles
5.Directory.GetLogicalDrives
6.Directory.SetCurrentDirectory(String path)