Name Property (WScript Object)

 

Returns the name of the WScript object (the host executable file).

object.Name 

object

WScript object.

The Name property is a read-only string.

The following JScript code shows how to use the Name property.

WScript.Echo (WScript.Name);
Show: