Public Function CombineDriveAndPath( _ ByVal vDrive As Variant _ , ByVal vPath As Variant _ ) As Variant
CombineDriveAndPath("C", "WINDOWS") = "C:WINDOWS" ' #1; Note no \ CombineDriveAndPath("C", "\WINDOWS") = "C:\WINDOWS" ' #2; Note C to C: CombineDriveAndPath("C:", "WINDOWS") = "C:WINDOWS" ' #3; Note no \ CombineDriveAndPath("C:", "\WINDOWS") = "C:\WINDOWS" CombineDriveAndPath("C:\", "WINDOWS") = "C:\WINDOWS" CombineDriveAndPath("C:\", "\WINDOWS") = "C:\WINDOWS" CombineDriveAndPath("\\SJS4", "ENTISOFT") = "\\SJS4\ENTISOFT" CombineDriveAndPath("\\SJS4", "\ENTISOFT") = "\\SJS4\ENTISOFT" CombineDriveAndPath("\\SJS4\", "ENTISOFT") = "\\SJS4\ENTISOFT" CombineDriveAndPath("\\SJS4\", "\ENTISOFT") = "\\SJS4\ENTISOFT"See also:
CombinePathAndFile Function CombinePrefixAndExtension Function SeparateDriveAndPath FunctionvDrive: Drive letter or UNC drive name that will be combined with vPath. Function returns Null if vDrive is Null or cannot be fixed-up to a string.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.