====== ScriptName ====== Property of [[:scripting:api:wscript:start|IWScript]] ===== Description ===== Returns the file name of the currently running script ===== Property type ===== Read-Only Property of type **[[scripting:api:data-type:BSTR|BSTR]]** ===== Syntax ===== ==== JavaScript ==== var sVal = WScript.ScriptName; ==== Visual Basic Script ==== sVal = WScript.ScriptName ==== C++ ==== BSTR sVal; HRESULT hr = WScript.get_ScriptName(&sVal); ===== See Also ===== [[:scripting:api:wscript:start|IWScript]] ~~NOTOC~~