public Shared Sub Backup()
Dim src As String = (Application.StartupPath + "\transportdb.mdb")
Dim dst As String = ""
Dim settingsDT As System.Data.DataTable = bll_settings.Select_App_Settings
If (settingsDT.Rows.Count > 0) Then
Dim backup_path As String = settingsDT.Rows(0).ItemArray(6).ToString
If (backup_path = "") Then
dst = "c:/"
Else
dst = backup_path
End If
dst = (dst + ("\\" + ("transportdb" _
+ (PersianDatetime + ".mdb"))))
End If
Try
System.IO.File.Copy(src, dst, true)
Catch ee As Exception
MessageBox.Show(ee.ToString)
End Try
End Sube