Bonjour,
j'aimerais récupérer une partie d'une chaîne
//ma commande GetResponseFromCommandLine() me retourne un truc du genre abcd:Login et je veux recupere uniquement Login string path = Path.Combine("chemin"); string outPut=GetResponseFromCommandLine("cmd",path); //GetResponseFromCommandLine(cmd,path) est une fonction qui execute en se positionant sur un chemin precis et retourne le resultat d'une comande string result1 = outPutManager.Split(new string[] { ":"},StringSplitOptions.RemoveEmptyEntries[0]; // sa ne marche foreach (char Recup in outPut)//sa non plus