حذف مجلد فارغ
صفحة 1 من اصل 1
حذف مجلد فارغ
حذف مجلد فارغ
// Delete Folder
using namespace System;
using namespace System::IO;
int main()
{
String^ path = "c:\\Test";
try
{
if ( Directory::Exists( path ) )
{
// Delete the directory exist.
Directory::Delete( path );
} else
Console::WriteLine( "The directory is not exist." );
}
catch ( Exception^ )
{
Console::WriteLine( "The Delete operation failed as expected." );
}
Console::ReadKey();
}
// Delete Folder
using namespace System;
using namespace System::IO;
int main()
{
String^ path = "c:\\Test";
try
{
if ( Directory::Exists( path ) )
{
// Delete the directory exist.
Directory::Delete( path );
} else
Console::WriteLine( "The directory is not exist." );
}
catch ( Exception^ )
{
Console::WriteLine( "The Delete operation failed as expected." );
}
Console::ReadKey();
}
djelal- مبرمج مجتهد
- عدد المساهمات : 157
تاريخ التسجيل : 29/04/2015
رد: حذف مجلد فارغ
- الكود:
using namespace System;
using namespace System::IO;
int main()
{
String^ path = "c:\\Test";
try
{
if ( Directory::Exists( path ) )
{
// Delete the directory exist.
Directory::Delete( path );
} else
Console::WriteLine( "The directory is not exist." );
}
catch ( Exception^ )
{
Console::WriteLine( "The Delete operation failed as expected." );
}
Console::ReadKey();
}
djelal- مبرمج مجتهد
- عدد المساهمات : 157
تاريخ التسجيل : 29/04/2015
صفحة 1 من اصل 1
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى