Returns the current script filename and directory.
Syntax |
Description |
---|---|
out = currentscriptname; |
Returns the current script filename as a string. If entered in the script prompt, this function returns the string "prompt". |
Examples
Gets the current script filename.
?out=currentscriptname; C:/Users/myname/Documents/FDTD/myfile.lsf
See Also
List of commands , fileexists , getpath , which , pwd , fileextension , filebasename , filedirectory , currentfilename