Environment.CurrentDirectory Property gets or sets the fully qualified path of the current working directory.
Imports System
Imports System.IO
Imports System.Collections
Class Sample
Public Shared Sub Main()
' Change the directory to %WINDIR%
Environment.CurrentDirectory = Environment.GetEnvironmentVariable("windir")
Dim info As New DirectoryInfo(".")
Console.WriteLine(("Directory Info: " + info.FullName))
End Sub
End Class