Properties (Windows Script Host) 

The following sections include information about the properties of Windows Script Host.

In This Section

  • AtEndOfLine Property
    Returns a Boolean value indicating whether the end of an input line has been reached.
  • AtEndOfStream Property
    Returns a Boolean value indicating whether the end of an input stream has been reached.
  • Character Property
    Reports the specific character in the line of code that contained the error.
  • Column Property
    Returns the column number of the current character position in an input stream.
  • ExitCode Property
    Returns the exit code set by a script/program run using the Exec() method.
  • Hotkey Property
    Allows you to assign a key combination to a shortcut and determine the key combination to a shortcut.
  • IconLocation Property
    Allows you to assign an icon to a shortcut and determine which icon has been assigned to a shortcut.
  • Interactive Property
    Allows you to set the script mode programmatically, as well as determine the script mode programmatically.
  • Named Property
    Returns the WshNamed object (a collection of named arguments).
  • Path Property
    Returns the name of the directory containing the WScript object (the host executable file).
  • ProcessID Property
    Reports the process ID (PID) of a process started with the WshScriptExec object.
  • RelativePath Property
    Assigns a relative path to a shortcut, or identifies the relative path of a shortcut.
  • Source Property
    Identifies the COM object responsible for causing the script error.
  • TargetPath Property
    Allows you to assign a path to the executable file to which a shortcut points, as well as determine the path to the executable file pointed to by a shortcut.
  • Unnamed Property
    Returns the WshUnnamed object (a collection of unnamed arguments).
  • WindowStyle Property
    Allows you to assign a window style to a shortcut, as well as determine the type of window style used by a shortcut.
  • WorkingDirectory Property
    Allows you to assign a working directory to a shortcut, as well as determine the working directory used by a shortcut.