21-03-19, 03:18 PM
(آخر تعديل لهذه المشاركة : 22-03-19, 08:46 AM {2} بواسطة asemshahen5.)
تفضل هذا الكود :
PHP كود :
If Not System.IO.Directory.Exists(Application.StartupPath & "\Backup" & Now.ToString("yyyy,MM,dd")) Then
System.IO.Directory.CreateDirectory(Application.StartupPath & "\Backup" & Now.ToString("yyyy,MM,dd"))
IO.File.Copy(Application.StartupPath & "\DBName.mdb", Application.StartupPath & "\Backup" & Now.ToString("yyyy,MM,dd") & "\DBName.mdb")
Else
MsgBox("المجلد موجود مسبقا", MsgBoxStyle.Critical, "خطأ")
End If
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
