I want to execute batch files one by one so on console if I press yes
then next file should execute if I press no
then console is ended
string file = @"C:\Users\HP\Desktop\Date";
ProcessStartInfo ProcessInfo;
foreach (string c in Directory.EnumerateFiles(file))
{
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = c;
p.Start();
p.WaitForExit();
}