LocationMy.Computer.FileSystem.GetParentPath SyntaxDim result As String = My.Computer.FileSystem.GetParentPath(path)
DescriptionThe GetParentPath method examines a valid path and returns the parent portion. The path supplied to the method does not have to exist, but it must be in a valid format. Whether you supply the full path to a file or a directory, GetParentPath simply removes the final portion. You can supply a relative path, but if you supply only a single path component (such as ".."), an empty string will be returned. Usage at a Glance
ExampleworkFolder = My.Computer.FileSystem.GetParentPath(workFile) Related Framework Entries
See AlsoCombinePath Method, FileSystem Object, GetName Method |