Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > System

currentscriptname

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Returns the current script filename and directory.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

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

System level, fileexists, getpath, which, pwd, fileextension, filebasename, filedirectory, currentfilename

Copyright Lumerical Inc. | Privacy | Site Map