Get the Directory full name : DirectoryInfo « File Directory « Visual C++ .NET






Get the Directory full name

 

#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("Name:       {0}", dir->FullName);

    return 0;
}

   
  








Related examples in the same category

1.Does a DirectoryInfo Exist
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