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.

Applies To:

WScript Object

Example

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

WScript.Echo (WScript.Name);

See Also

Reference

Path Property (Windows Script Host)