A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



PathCombine

Concatenates two strings that represent properly formed paths into one path, as well as any relative path pieces.

VB4-32,5,6
Declare Function PathCombine Lib "shlwapi.dll" Alias "PathCombineA" (ByVal szDest As String, ByVal lpszDir As String, ByVal lpszFile As String) As Long

Operating Systems Supported
Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later); Requires Windows 98 (or Windows 95 with Internet Explorer 4.0 or later)

Library
Shlwapi

Parameter Information
- lpszDest
[out] Pointer to a buffer with the NULL-terminated string to hold the combined path string. The size of this buffer should be set to MAX_PATH to ensure that it is large enough to hold the returned string.

- lpszDir
[in]Address of the string that represents the directory path.

- lpszFile
[in]Address of the string that represents the file path.

Return Values
Returns a pointer to a string with the concatenated path if successful, or NULL otherwise

Last update: 07 April 2006