Public Function CombinePathAndFile( _ ByVal vPath As Variant _ , ByVal vFile As Variant _ ) As Variant
CombinePathAndFile("", "WINDOWS") = "WINDOWS" CombinePathAndFile("C", "WINDOWS") = "C\WINDOWS" ' #2 CombinePathAndFile("C", "\WINDOWS") = "C\WINDOWS" ' #3 CombinePathAndFile("C:", "WINDOWS") = "C:WINDOWS" CombinePathAndFile("C:", "\WINDOWS") = "C:\WINDOWS" CombinePathAndFile("C:\", "WINDOWS") = "C:\WINDOWS" CombinePathAndFile("C:\", "\WINDOWS") = "C:\WINDOWS" CombinePathAndFile("\\SJS4\C", "") = "\\SJS4\C" CombinePathAndFile("\\SJS4\C", "ENTISOFT") = "\\SJS4\C\ENTISOFT" CombinePathAndFile("\\SJS4\C", "\ENTISOFT") = "\\SJS4\C\ENTISOFT" CombinePathAndFile("\\SJS4\C\", "ENTISOFT") = "\\SJS4\C\ENTISOFT" CombinePathAndFile("\\SJS4\C\", "\ENTISOFT") = "\\SJS4\C\ENTISOFT"See also:
CombineDriveAndPath Function CombinePrefixAndExtension Function SeparatePathAndFile FunctionvPath: The drive and/or directory path portions of a file name. Function returns Null if vPath is Null or cannot be fixed-up to a string.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.