for getting splited string you can use Split method of string datatype.
for more information on Split method can see this.
Split Method[
^]
you can go like this.
string[] strArray = new string[5];
strArray[0] = @"C:\MyFolder\Software";
strArray[1] = @"C:\MyFolder\Admin";
strArray[2] = @"C:\MyFolder\Accounts";
strArray[3] = @"C:\MyFolder\HR";
strArray[4] = @"C:\MyFolder\Maintainece";
foreach (string str in strArray)
{
string[] words =str.Split('\\');
Response.Write(words[2] + ",<br>");
}