LocationMy.Computer.FileSystem.CurrentDirectory SyntaxDim result As String = My.Computer.FileSystem.CurrentDirectory or: My.Computer.FileSystem.CurrentDirectory = path
DescriptionThe CurrentDirectory property returns the full path to the "current" directory, the directory used when referring to files with relative path names. This property can also set the current directory to a new path. Usage at a Glance
ExampleThis sample code shows the basic functionality of the CurrentDirectory property. My.Computer.FileSystem.CurrentDirectory = "c:\Windows\System32" My.Computer.FileSystem.CurrentDirectory = ".." ' Up one level MsgBox(My.Computer.FileSystem.CurrentDirectory) ' ----- Displays "c:\WINDOWS" Related Framework Entries
See AlsoDrives Property, FileSystem Object, FindInFiles Method, GetDirectories Method, GetDirectoryInfo Method, GetDriveInfo Method, GetFileInfo Method, GetFiles Method, GetTempFileName Method |