The ScriptName property provides the file name of the script being run by the Windows Scripting Host.
Wscript.ScriptName = strScriptName
Wscript.ScriptName = Sample.VBS
Wscript.ScriptFullName property
© 1997 by Microsoft Corporation. All rights reserved.