Notifications
Clear all

[Closed] Getting current script name

Is it possible to get the name/path of the currently running script? I’m looking for a .ms equivalent of the maxFileName and maxFilePath commands.

This is for collecting some tools usage statistics, and I’d rather avoid having to manually add the scripts name and path to every script.

2 Replies

getThisScriptFilename()
getSourceFileNamefont=Courier New[/font]
[font=Courier New]getSourceFileOffSet[size=2]font=Courier New[/font][/size][/font]
[b]getSourceFile[font=Courier New]Line/b[/font]

If found this by typing : help “script” in the listener.
Always helpful when looking for a command when you have a keyword in mind.

That’s exactly what I needed, thanks so much!

Rick