Create a directory : Directory « Stream File « VB.Net Tutorial






Public Class Tester
    Public Shared Sub Main
        Try
            My.Computer.FileSystem.CreateDirectory("c:\\a")
            Console.WriteLine("Directory created successfully.")
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        End Try
    End Sub
End Class
Directory created successfully.








13.12.Directory
13.12.1.Create a directory
13.12.2.Get CurrentDirectory
13.12.3.Get Directory contents
13.12.4.Get Directory Creation Time
13.12.5.Use the GetFiles method to return file names from a user-specified location.