<pre>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using System.Diagnostics; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { while (true) { string path = "C:\\Experiment\\folder\\database\\data.tou"; if (File.Exists(path)) { Thread.Sleep(60000); } else { Process[] pname = Process.GetProcessesByName("notepad"); if (pname.Length > 0) { pname[0].Kill(); } else { } } Thread.Sleep(60000); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)