Name Property (WScript Object)

 

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

Syntax

object.Name 

Arguments

  • object
    WScript object.

Remarks

The Name property is a read-only string.

Applies To:

WScript Object

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

WScript.Echo (WScript.Name);

See Also

Path Property (Windows Script Host)