Setup guide
sLocation
Optional. The name of the network server where the object is to be created.
Remarks
This method creates an instance of the automation server specified in sProgIDorClassID. Only local-server or remote-
server instances are created, i.e. automation servers running in its own executable.
sProgIDorClassID can be a ProgID, or a CLSID in the form "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}".
JScript example:
wmp6=CreateObject("MediaPlayer.MediaPlayer");
//create an instance of Windows Media
Player 6
wmp6.Filename="c:\\videos\\whatever.avi"; //load a media file.
wmp6.Play(); //Play it
sLocation can be the servername/sharename of a networked remote computer on which the object is to be created.
Note that Windows NT networks have access restrictions, which can be configured using the dcomcnfg.exe
tool. On the
remote computer, go to Start Menu|Run, type dcomcnfg and click OK. Locate Component Services|Computers|My
Computer, right click and select Properties, Default COM Security.
Exit method
Exits script execution.
Exit(
[
eExitCode
]
)
Arguments
eExitCode
Optional. An exit code value from the ExitCode enumeration. See below for possible values.
Remarks
eExitCode can be one of the following values:
KillTimer method
Cancel a running timer
ExitCodeNoOSD
Exit script and continue with the command's next action, but do not display a
generic OSD for the command.
ExitCodeNormal
Exit script and continue with the command's next action. This is the default.
ExitCodeAbort
Exit script and abort further command processing, but display a generic command
OSD.
ExitCodeAbortNoOSD
Exit script and abort further command processing without displaying any OSDs.