Does a DirectoryInfo Exist : DirectoryInfo « File Directory « Visual C++ .NET






Does a DirectoryInfo Exist

 
#include "stdafx.h"
using namespace System;
using namespace System::IO;
using namespace System::Text;

int main(array<System::String ^> ^args)
{
    DirectoryInfo ^dir = gcnew DirectoryInfo("c:\\");

    if (!dir->Exists)
    {
        Console::WriteLine("Directory Not Found");
        return -1;
    }


    return 0;
}

   
  








Related examples in the same category

1.Get the Directory full name
2.Get Directory creation time
3.Get Directory last access time
4.Get Directory last write time
5.Get Directory Attributes
6.Get Sub-Directories
7.Get Files under a directory