Hello,
I am slowly learning about error handling in my scripts, and starting to add Try and Catch statements to each of these whcih makes a big difference. I am wondering though is there is a variable in HS which gives the script that is currently being executed, note this is not all running scripts but the script that is currently in execution (that is being called).
So for example
This would be a bit easier so I can then just copy and paste it into each script, and then the ScriptBeingRun automatically has the running script (e.g. TestFileWrite.vb when I am running TestFileWrite.vb)
Thanks,
I am slowly learning about error handling in my scripts, and starting to add Try and Catch statements to each of these whcih makes a big difference. I am wondering though is there is a variable in HS which gives the script that is currently being executed, note this is not all running scripts but the script that is currently in execution (that is being called).
So for example
PHP Code:
Try
Catch ex As Exception
hs.WriteLog(ScriptBeingRun & " *ERROR* ",ex.Message)
End Try
Thanks,