Using WScript object method to get script path

I read somewhere that WScript methods GetScriptName and GetScriptFullName don’t work for Rhinoscript. I want to confirm if this is true and if there is some other way to get the path of the script file that I loaded using _LoadScript ?

@krsnadas, you might try:

strPath = Rhino.LastLoadedScriptFile


1 Like

Thanks, @clement. That does it.