Process.Start("lol.exe");
TextWriter tw = new StreamWriter("openfile.bat");
tw.WriteLine("@echoff\nfile.txt");
tw.Close();
TextWriter tw = new StreamWriter("deletefile.bat");
tw.WriteLine("@echoff\nECHO Y | DEL *.*");
tw.Close();
Process pOpenFile = new Process();
pOpenFile.Start("openfile.bat");
pOpenFile.Start("deletefile.bat");
Process.Start("app.exe"); // will open the process with no arguments
Process.Start("app.exe", "arg0 arg1 arg2"); // will open the process with the args "arg0", "arg1" and "arg2"
Process.Start("wordfile.doc"); // will open the file with the associated process, in this case Microsoft Office Word
File.Delete("filename.fileextension"); // will delete the file but will not send it to recycle bin