MohamedModyAdel
2019-06-11, 01:16 PM
في كلاس البروجرم
public static void BackUP()
{
var program = Environment.GetFolderPath(Environment.SpecialFolde r.ProgramFilesX86);
var Directories = Directory.GetDirectories(program + "/PremiumSoft/");
var path = Directories.FirstOrDefault();
if (File.Exists(path + "/navicat.exe"))
{
Console.WriteLine("Backuping.................");
var info = new ProcessStartInfo();
info.WorkingDirectory = path;
info.FileName = path + "/navicat.exe";
info.Arguments = " /schedule matrix";
info.UseShellExecute = true;
var p = Process.Start(info);
p.WaitForExit();
Console.WriteLine("Backup Done");
}
}
public static void BackUP()
{
var program = Environment.GetFolderPath(Environment.SpecialFolde r.ProgramFilesX86);
var Directories = Directory.GetDirectories(program + "/PremiumSoft/");
var path = Directories.FirstOrDefault();
if (File.Exists(path + "/navicat.exe"))
{
Console.WriteLine("Backuping.................");
var info = new ProcessStartInfo();
info.WorkingDirectory = path;
info.FileName = path + "/navicat.exe";
info.Arguments = " /schedule matrix";
info.UseShellExecute = true;
var p = Process.Start(info);
p.WaitForExit();
Console.WriteLine("Backup Done");
}
}