Display the names of logical drives installed on a computer

Ddd
Posted by Ddd under C# category on | Points: 40 | Views : 2195
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ConsoleApplication20jan
{
class Class6
{
static void Main()
{
string[] s = Directory.GetLogicalDrives();
foreach (string y in s)
{
Console.WriteLine(y);
}
}
}
}

Comments or Responses

Login to post response