Create directory with drive letter and without drive letter : Dictionary « Data Structure « VB.Net






Create directory with drive letter and without drive letter

Create directory with drive letter and without drive letter
 
Imports System.IO

Module Module1

    Sub Main()
        Console.WriteLine("Creating directories...")

        Directory.CreateDirectory("D:\test01")
        Directory.CreateDirectory("D:\Temp\Sample02")
        Directory.CreateDirectory("Sample03")

        Console.WriteLine("Directories created")
    End Sub

End Module


           
         
  








Related examples in the same category

1.Get parent directoryGet parent directory
2.Delete a DirectoryDelete a Directory
3.Check if a directory does not exist, create a directoryCheck if a directory does not exist, create a directory
4.Get and set current working directoryGet and set current working directory
5.List all files under a directoryList all files under a directory
6.List all Directories under a directoryList all Directories under a directory
7.Make Dictionary based on your own Object
8.Your own Generic List Dictionary Your own Generic List Dictionary
9.Add some elements to the dictionary. There are no duplicate keys, but some of the values are duplicates.
10.The Add method throws an exception if the new key is already in the dictionary.
11.The Item property is the default property
12.The default Item property can be used to change the value associated with a key
13.If a key does not exist, setting the default Item property for that key adds a new key/value pair
14.The default Item property throws an exception if the requested key is not in the dictionary
15.TryGetValue can be a more efficient way to retrieve values
16.ContainsKey can be used to test keys before inserting them
17.When you use foreach to enumerate dictionary elements, the elements are retrieved as KeyValuePair objects.
18.To get the values, use the Values property
19.To get the keys alone, use the Keys property
20.Use the Remove method to remove a key/value pair