Directory.SetCurrentDirectory : Directory « System.IO « VB.Net by API






Directory.SetCurrentDirectory

  
Imports System.IO

Module Module1

    Sub Main()
        Console.WriteLine("Current directory is {0}", Directory.GetCurrentDirectory())
        Directory.SetCurrentDirectory("C:\")
        Console.WriteLine("Current directory is {0}", Directory.GetCurrentDirectory())
    End Sub

End Module

   
    
  








Related examples in the same category

1.Directory.CreateDirectory
2.Directory.Delete
3.Directory.Exists
4.Directory.GetCurrentDirectory()
5.Directory.GetDirectoryRoot
6.Directory.GetFileSystemEntries
7.Directory.GetLogicalDrives()
8.Directory.GetParent
9.Directory.Move