Get C Drive directories

Sanjay Verma replied to lokesh kumar at 12-May-08 08:09
Imports System

Public Class MainClass

    Shared Sub Main()
        'List each folder at the root of your C drive
        For Each strFolder As String In _
            My.Computer.FileSystem.GetDirectories("C:\")
            'Add the item to the list
            System.Console.WriteLine(strFolder)
        Next

    End Sub
End Class




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  How to get a list of directory in c drive? - lokesh kumar  10-May-08 03:59 3:59:22 AM
      check here - Vasanthakumar D  10-May-08 04:26 4:26:57 AM
      Go thr this - Sujit Patil  10-May-08 04:52 4:52:18 AM
          re: Get directory - Chirag Bhavsar  10-May-08 05:21 5:21:14 AM
      Hope you want Visual Basic version of code - sundar k  10-May-08 06:09 6:09:18 AM
      Get C Drive directories - Sanjay Verma  12-May-08 08:09 8:09:29 AM
View Posts