Código PHP:
Copia de seguridad
Dim hora As TimeSpan = Date.Now.TimeOfDay()
Dim txtHora As String = hora.ToString.Substring(0, 5)
Dim swBkp As Boolean = False
If txtHora = "18:00" Then
Dim Ruta As [String] = "", Comando As [String] = "", Arg As [String] = ""
Ruta = (Application.StartupPath.Replace("\\", "/") & "/") & DateTime.Now.ToString("yyyy-MM-dd")
If Not swBkp Then
swBkp = True
Dim Pr As New Process()
Pr.EnableRaisingEvents = False
Pr.StartInfo.UseShellExecute = False
Pr.StartInfo.RedirectStandardOutput = True
Pr.StartInfo.FileName = "mysqldump"
Pr.StartInfo.Arguments = "--opt --force --host=localhost --user=root --password=root --databases rs -r" & Ruta & ".sql"
Pr.Start()
End If
End If
Catch ex As Exception
End Try
le agradezco la ayuda. hasta la proxima