string path = "C:\\Workspaces\\thisRequired\\Di\\DiDe\\bin\\Debug"; string[] parts = path.Split('\\'); if (parts.Length >= 3) { Console.WriteLine(parts[2]); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)