_FilePath

Returns file path without end back or forward slash

#include "String and File String.au3"
_FilePath( $sFile )

parameters

$sFile File or url name with path
$bToLower Convert path to lower string for easy comparing

return value

string value File path without backslash or forward slash

related

_FileComparePaths, _FileAddPath, _FileSetPath

examples

_FilePath( "c:\documents\mybook.doc" ) ; "c:\documents"

_FilePath( "https://www.mywebsite.com/mybook.pdf" ) ; "https://www.mywebsite.com"