CombinePath
CombinePath
Combines two paths and returns a properly formatted path.
Syntax
FileSystem.CombinePath(BaseDirectory, RelativePath)
Parameters
BaseDirectory |
String, input |
|
First path to be combined. |
||
RelativePath |
String, input |
|
Second path to be combined. |
Examples
Sub Main()
MsgBox FileSystem.CombinePath("C:\Documents and Settings\All Users\Documents\My Pictures", "picture.jpg")
End Sub
Sub Main()
MsgBox FileSystem.CombinePath("C:\Dir1\Dir2\Dir3", "..\Dir4\Dir5\File.txt")
End Sub