LocationMy.Computer.FileSystem.CombinePath SyntaxDim result As String = _ My.Computer.FileSystem.CombinePath(baseDirectory, relativePath)
DescriptionThe CombinePath method combines an absolute path component with a relative path component and returns a properly concatenated and formatted version. The concatenation properly inserts backslashes in the right places. Usage at a GlanceAn exception is thrown if one or both of the paths are malformed. Neither the two input paths nor the final output path need exist, but they all must be in a valid format. ExampleThe following example combines a root directory path and a relative path component into a single formatted path. Dim finalPath As String finalPath = My.Computer.FileSystem.CombinePath _ (My.Computer.FileSystem.SpecialDirectories.MyDocuments, _ "Business\Expenses.txt") Related Framework Entries
See AlsoFileSystem Object, GetName Method, GetParentPath Method |