private void Button_Click(object sender, RoutedEventArgs e)
{
string pythonPath = @"C:\Program Files\Python\Python39\python.exe";
string scriptPath = @"D:\Documents\Script security network\Software Box\Software\Reload Box\scripts\reload-no-time.py";
try
{
if (!File.Exists(scriptPath))
{
throw new FileNotFoundException("Le fichier de script n'existe pas", scriptPath);
}
}
catch (FileNotFoundException ex)
{
MessageBox.Show($"Erreur : {ex.Message}");
return;
}
private void Button_Click(object sender, RoutedEventArgs e)
{
string pythonPath = @"C:\Program Files\Python\Python39\python.exe";
string scriptPath = @"D:\Documents\Script security network\Software Box\Software\Reload Box\scripts\reload-no-time.py";
try
{
if (!File.Exists(scriptPath))
{
throw new FileNotFoundException("Le fichier de script n'existe pas", scriptPath);
}
}
catch (FileNotFoundException ex)
{
MessageBox.Show($"Erreur : {ex.Message}");
return;
}