Windows Script Host  

Name Property (WScript Object)

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

object.Name 

Arguments

object
WScript object.

Remarks

The Name property is a read-only string.

Example

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

WScript.Echo (WScript.Name);

See Also

WScript Object