ScriptName Property
But what does it look like?
What this page fails to tell you is the result of using ScriptName.
If your script file name is "myscript.wsf", WScript.ScriptName will return "myscript.wsf".
Compare that to WScript.Name which will return "Windows Script Host". (assuming you launched your script via cscript or wscript)
If your script file name is "myscript.wsf", WScript.ScriptName will return "myscript.wsf".
Compare that to WScript.Name which will return "Windows Script Host". (assuming you launched your script via cscript or wscript)