#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; }