I am writing several log files with results from my script. The @ScriptName is writing an old script name.
I uninstalled AutoIt and SCITE and deleted the AutoIt directory, reinstalled everything and reran my script. Same issue.
I had started out with (for example) "MyScript.au3". Added Debugging and renamed the script "MyScript_Debug.au3". Finished debugging my script and renamed it back to "MyScript.au3". However my @ScriptName is being displayed and written as "MyScript_Debug.au3".
Where is this saved so I can remove it and get the correct Script Name?