public static void prompt() { Task.Factory.StartNew(() => { try { string play = Environment.CurrentDirectory + @"\coc_notify.wav"; if (File.Exists(play)) { cm = new clsMCI(); cm.FileName = play; cm.play(); } } catch (Exception) { } }); }