public static string startOperator(string operatorID) { foreach (string key in PCS.operatorsDict.Keys) { if (key.Contains(operatorID)) { string operatorPath = BuildPaths.getExecPath("\\Operator\\bin\\Debug\\Operator.exe"); string operatorArgs = PCS.getAllFieldsOperator(key); ProcessStartInfo operatorStartInfo = new ProcessStartInfo(); operatorStartInfo.FileName = operatorPath; operatorStartInfo.Arguments = operatorArgs; Process operatorProcess = Process.Start(operatorStartInfo); Console.WriteLine("Comecei operador com id: " + operatorID + " e repID: " + PCS.operatorsDict[key].repID); } } return("Operator " + operatorID + " launched"); }