Returns:
<cDirName> Just the path name specified inside the full filename, excluding the drive name.
Returns:
<cDirName> Just the path name specified inside the full filename, excluding the drive name.
Returns:
<cDirName> Just the path name specified inside the full filename, excluding the drive name.
function cFileSubDir( cPath ) // returns the subdir of a path & filename
return SubStr( 4, cFilePath( If( Right( cPath, 1 ) == "\" ,;
Left( cPath, Len( cPath ) - 1 ), cPath ) ) )
function cFilePath( cPathMask ) // returns path of a filename
local lUNC := "/" $ cPathMask
local cSep := If( lUNC, "/", "\" )
local n := RAt( cSep, cPathMask ), cDisk
return If( n > 0, Upper( Left( cPathMask, n ) ),;
( cDisk := cFileDisc( cPathMask ) ) + If( ! Empty( cDisk ), cSep, "" ) )
function cFileSubDir( cPath ) // returns the subdir of a path & filename
local lUNC := "/" $ cPath
local cTemp := cFilePath( If( Right( cPath, 1 ) $ "\/" ,;
Left( cPath, Len( cPath ) - 1 ), cPath ) )
return If( ! lUNC, SubStr( cTemp, 4 ), cTemp )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 38 guests