<< nelsonroot Core pause >>

nfilename


mfilename


Returns the name of the currently executing file.


Syntax


R = nfilename()
R = nfilename('fullpath')
R = nfilename('fullpathext')

Output argument


R

a string: the path of current function

Description


R = nfilename() returns the name of the currently executing file.

nfilename() called from outside an nlf file returns an empty string.

With the input argument 'fullpathext', the string includes the directory part of the macro filename, and the filename extension.

With the input argument 'fullpath', the string includes the directory part of the macro filename, but not the extension.

mfilename is an alias on nfilename added for basic script compatibility.

See also


nargin, nargout.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< nelsonroot Core pause >>