wwUtils::GetRelativePath

Returns a relative path (..\file.txt or SubFolder\file.txt) from a full path relative to a given base path.

Similar to Sys(2014) (Minimum Path), but this function preserves path case if the file exists - otherwise lower case is returned.

o.GetRelativePath(lcFolder,lcBasePath)

relative path

Parameters

lcFolder
Folder that is to be converted to a relative path.

lcBasePath
Base path used as the base for the relative path.

See also

Class wwUtils

© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic