Get Name and Path of Current Execution Script on DIAdem

Updated May 31, 2023

Reported In


  • DIAdem

Issue Details

I am looking to get the name and the path of the current script that is running in DIadem.


You can use the variables CurrentScriptName and CurrentScriptPath. The following code returns the file path and name of the VBScript.

dim Spath : Spath = CurrentScriptPath
dim Sname : Sname = CurrentScriptName
Call MsgBoxDisp(Spath)
Call MsgBoxDisp(Sname)