Notifications
Clear all
[Closed] Getting current script name
Dec 09, 2011 9:30 am
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
Dec 09, 2011 9:30 am
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.