![программирование](https://habrastorage.org/r/w120/files/964/953/80f/96495380f6d9484792ec05815386d0e2.jpg)
Программирование
- 1 ответ
- 0 вопросов
0
Вклад в тег
using System;
using System.Diagnostics;
namespace Example
{
class Program
{
static void Main(string[] args)
{
if(args[0] == "-first")
{
Console.WriteLine("First Run");
Process second_procces = new Process();
second_procces.StartInfo.UseShellExecute = true;
second_procces.StartInfo.FileName = @"Example.exe";
second_procces.StartInfo.Arguments = "-second";
second_procces.Start();
}
else if(args[0] == "-second")
{
Console.WriteLine("Second Run");
Console.ReadLine();
}
}
}
}