filename_dir

This function returns the directory part of the indicated file name, which normally is the same as the path except for the final backslash.

 

Syntax:

filename_dir(fname);

ArgumentTypeDescription
fnameStringThe file to use.

 

Returns:

String

 

Example:

dir = filename_dir("Test.ini");

The above code gets the directory (as a string) of the specified file.