Global

Members

sWbemObjectSet

Source:

An SWbemObjectSet object is a collection of SWbemObjectSet object

Type Definitions

typeConvToCommandOptions

Source:
Properties:
Name Type Attributes Default Description
shell boolean <optional>
false

Wraps with CMD.EXE

closes boolean <optional>
true

/C (Close?) or /K (Keep?)

escapes boolean <optional>
true

Escapes the arguments.

Type:
  • object

typeExecObject

Source:
Properties:
Name Type Description
ExitCode number
ProcessID number
Status number
StdOut object
StdIn object
StdErr object
Terminate function

The object returning from Wsh.OS.shExec (WshScriptExec object). When options.shell: true is specified, exitCode may not be accurate because this value is returned by CMD.

Type:
  • object

typeExecSyncReturn

Source:
Properties:
Name Type Description
exitCode number

There are applications that return 1 (NG) even if the processing is successful.

command string

The executed command line

stdout string
stderr string
error boolean

The object returning from Wsh.OS.shExecSync. When options.shell: true is specified, exitCode may not be accurate because this value is returned by CMD.

Type:
  • object

typeExecWmiQueryOptions

Source:
Properties:
Name Type Attributes Default Description
compName string <optional>
null

Ex1. server1.network.fabrikam Ex2. 111.222.333.444

domainName string <optional>
"."
namespace string <optional>
"."
Type:
  • object

typeGetProcessesOptions

Source:
Properties:
Name Type Attributes Default Description
selects Array.<string> <optional>
[]

The field names to output. 'Caption', 'CommandLine', 'ExecutablePath', 'ProcessID'. default '*'.

matchWords Array.<string> <optional>
[]

The matching filter words.

excludingWords Array.<string> <optional>
[]

The excluding filter words.

Type:
  • object

typeOsExecOptions

Source:
See:
Properties:
Name Type Attributes Default Description
isDryRun boolean <optional>
false

No execute, returns the string of command.

Type:

typeShRunOptions

Source:
Properties:
Name Type Attributes Default Description
winStyle number | string <optional>
"activeDef"

See Wsh.Constants.windowStyles.

waits boolean <optional>
true

See Wsh.Constants.waits.

Type: