A network drive is mapped on our application server and drive name is Z. When I am trying to get drives information am not getting Mapped drive (Z). Tried with below code:
DriveInfo[] allDrives = DriveInfo.GetDrives();
Response.Write("Drives Present in Server: </br>");
foreach (DriveInfo d in allDrives)
{
Response.Write("---Drive Name: " + d.Name + " Drive Type: " + d.DriveType + "</br>");
}
How do i get this mapped drive.