Get Directory Attributes : DirectoryInfo « File Directory « Visual C++ .NET






Get Directory Attributes

 

#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:\\");
    Console::WriteLine("Attributes: {0}", 
        dir->Attributes);

    return 0;
}

   
  








Related examples in the same category

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