This software adheres to the terms of FREEWARE.
Permission is hereby granted for this archive to be distributed via BBS, WWW, Anonymous FTP and any other means as long as no fee is charged for distribution and all components of this archive remain together.
The System Scripting Runtime in its current form is a module which contains six ActiveX components: IPNetwork, LMNetwork, NBTNetwork, SNMPManager, SSHSupport and System. It was designed and implemented to provide system and network-related functionality for various development environments (Scripting Languages, VB, C++, etc.).
The following new properties/methods have been added to the System object
- ProductType property
- GetLocalTime method
- GetSystemTime method
- SetLocalTime method
- SetSystemTime method
- Sleep method
Prerequisites:
If the system is running Windows NT 4.0 SP3+ / 2000 / 2003 / XP and you want to generate SNMP traps with the GenerateTrap method of the SNMPManager object, you must also register the STGenExt.dll module. To do this, copy STGenExt.dll to a directory of your choice and execute the command "RegSvr32.exe STGenExt.dll". Please note that you must be an administrator to successfully register the STGenExt.dll module. You must stop and start the SNMP service after registering the STGenExt.dll module to activate this module.
To deregister the STGenExt.dll module, execute the command "RegSvr32.exe /u STGenExt.dll".
Objects:
| ProgID | SScripting.IPNetwork |
| File name | SScrRun.dll |
| CLSID | 2B6A6DD3-8D36-11D2-8D8F-00A024D26D2E |
| IID | 2B6A6DD2-8D36-11D2-8D8F-00A024D26D2E |
| Type | Access | |
|---|---|---|
| Hostname | String | Read-only |
| Domain | String | Read-only |
| Name | Parameters |
|---|---|
| DNSLookup | Host as String |
| DNSLookupEx | Host as String |
| Ping | Destination as String, (optional) ResponseTime as Variant, (optional) SourceOfResponse as Variant, (optional) Timeout as Long, (optional) TTL as Long, (optional) BufferSize as Long |
| SendSyslogMessage | Destination as String, MessageText as String, (optional) Facility as Long, (optional) Priority as Long, (optional) DestinationPort as Long |
The Hostname property returns the hostname of the local host. Read-only.
oIPNetwork.Hostname
String
(none)
The Domain property returns the DNS domain name of the local host. Read-only.
oIPNetwork.Domain
String
(none)
The DNSLookup method resolves the name of a host to its IP-address or the IP-address of a host to its name (reverse-lookup).
String = oIPNetwork.DNSLookup( Host )
If the method succeeds, the return value is the first IP-address of the host, if the name of the host was provided as the Host parameter, or the name of the host, if the IP-address of the host was provided as the Host parameter. If the method fails, the return value is the empty string ("").
Please note that DNSLookup will only return the first IP-address of a host. If you want to retrieve all IP-addresses of a multi-homed host you have to use the DNSLookupEx method.
The DNSLookupEx method resolves the name of a host to its IP-addresses or the IP-address of a host to its names (reverse-lookup).
StringArray = oIPNetwork.DNSLookupEx( Host )
If the method succeeds, the return value is a string array containing all IP-addresses of the host, if the name of the host was provided as the Host parameter, or a string array containing the official hostname and all alternate names, if the IP-address of the host was provided as the Host parameter. If the method fails, the return value is an empty string array.
(none)
The Ping method sends an ICMP echo request to the specified host and returns information about the response, if one is received.
Long =
oIPNetwork.Ping(
Destination,
ResponseTime,
SourceOfResponse,
Timeout,
TTL,
BufferSize
)
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscPingSuccess = 0 | A valid ICMP Echo Response packet has been received. |
| sscPingDestinationUnreachable = 10 | An ICMP Destination Unreachable packet has been received. |
| sscPingTimeExceeded = 20 | An ICMP Time Exceeded packet has been received, which may be caused by a TTL value being too small. |
| sscPingTimeout = 30 | No response has been received within the timeout period. |
| sscPingInvalidParameter = 100 | On or more of the provided parameters contain an invalid value. |
| sscPingSocketError = 110 | An WinSocket related error occurred. |
| sscPingInvalidHostAddress = 120 | The specified host address (hostname or IP-address) is invalid. |
The response time is accurate to 10 milliseconds. This means that if the response time returned is 0, as many as 9 milliseconds may have passed.
The ping method uses the raw sockets feature of WinSock 2.x. On Windows NT 4.0 SP4+ and Windows 2000, the use of raw sockets is limited to administrators. This default behavior can be changed in case of Windows NT 4.0 but not in case of Windows 2000. More information can be found in KB-Article Q195445.
The SendSyslogMessage method sends a syslog message to the specified destination host.
Long = oIPNetwork.SendSyslogMessage( Destination, MessageText, Facility, Priority, DestinationPort )
If this parameter is not specified, sscFacilityUser will be used.
If this parameter is not specified, sscPriorityNotice will be used.
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscSyslogSuccess = 0 | Syslog message has been successfully sent. |
| sscSyslogInvalidParameter = 100 | On or more of the provided parameters contain an invalid value. |
| sscSyslogSocketError = 110 | An WinSocket related error occurred. |
| sscSyslogInvalidHostAddress = 120 | The specified host address (hostname or IP-address) is invalid. |
(none)
| ProgID | SScripting.LMNetwork |
| File name | SScrRun.dll |
| CLSID | 2B6A6DD5-8D36-11D2-8D8F-00A024D26D2E |
| IID | 2B6A6DD4-8D36-11D2-8D8F-00A024D26D2E |
| Type | Access | |
|---|---|---|
| ComputerName | String | Read-only |
| Name | Parameters |
|---|---|
| SendNetMessage | Destination as String, MessageText as String |
The ComputerName property returns the computer name (NetBIOS name) of the local computer. Read-only.
oLMNetwork.ComputerName
String
(none)
Windows NT/2000/XP only
The SendNetMessage method sends a network message to the specified logged-in user, computer, workgroup or domain.
Boolean = oLMNetwork.SendNetMessage( Destination, MessageText )
The method returns TRUE if it succeeds, FALSE if it fails.
This method is not supported on Windows 98.
| ProgID | SScripting.NBTNetwork |
| File name | SScrRun.dll |
| CLSID | 2B6A6DE1-8D36-11D2-8D8F-00A024D26D2E |
| IID | 2B6A6DE0-8D36-11D2-8D8F-00A024D26D2E |
(none)
| Name | Parameters |
|---|---|
| QueryNodeStatus | Destination as String, (optional) Timeout as Long, (optional) MACAddress as Variant, (optional) NBNames as Variant, (optional) NBGroupNameFlags as Variant, (optional) NBConflictFlags as Variant |
The QueryNodeStatus method sends an NBSTAT request to the specified host and returns information about the response, if one is received.
Long =
oNBTNetwork.QueryNodeStatus(
Destination,
Timeout,
MACAddress,
NBNames,
NBGroupNameFlags,
NBConflictFlags
)
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscNBSTATSuccess = 0 | A valid NBSTAT Response packet has been received. |
| sscNBSTATInternalError = 10 | An internal error has occurred. |
| sscNBSTATInvalidResponse = 20 | A invalid NBSTAT Response packet has been received. |
| sscNBSTATTimeout = 30 | No response has been received within the timeout period. |
| sscNBSTATInvalidParameter = 100 | On or more of the provided parameters contain an invalid value. |
| sscNBSTATSocketError = 110 | An WinSocket related error occurred. |
| sscNBSTATInvalidHostAddress = 120 | The specified host address (hostname or IP-address) is invalid. |
This method provides programmatic access to the same information as is returned by the command line "nbtstat -A <ip-address-of-host>".
Please note that if the value of the parameter Destination is a name and not an IP-address, the name is considered to be a hostname, not a computer name.
| ProgID | SScripting.SNMPManager |
| File name | SScrRun.dll |
| CLSID | 2B6A6DDB-8D36-11D2-8D8F-00A024D26D2E |
| IID | 2B6A6DDA-8D36-11D2-8D8F-00A024D26D2E |
| Type | Access | |
|---|---|---|
| Agent | String | Read-write |
| Community | String | Read-write |
| Port | Long | Read-write |
| Retries | Long | Read-write |
| Timeout | Long | Read-write |
| Variables | Variables collection object | Read-only |
| Name | Parameters |
|---|---|
| Get | (optional) ErrorIndex as Variant |
| GetNext | (optional) ErrorIndex as Variant |
| Set | (optional) ErrorIndex as Variant |
| GenerateTrap | EnterpriseOID as String, GenericTrap as Long, (optional) SpecificTrap as Long, (optional) ErrorIndex as Variant |
How to prevent run-time problems when using the SNMPManager object:
The Agent property specifies the hostname/IP-address of the agent. Read-write.
oSNMPManager.Agent
String
The initial value of this property is "localhost".
The Community property specifies the SNMP community name used when communicating with the agent. Read-write.
oSNMPManager.Community
String
The initial value of this property is "public".
The Port property specifies the UDP port being used for Get and Set operations. Read-write.
oSNMPManager.Port
Long
The initial value of this property is 161.
The Retries property specifies the communications retry count. The time-out specified by the Timeout property is doubled each time a retry attempt is transmitted. Read-write.
oSNMPManager.Retries
Long
The initial value of this property is 2.
The Timeout property specifies the communications time-out in milliseconds. Read-write.
oSNMPManager.Timeout
Long
The initial value of this property is 2000.
The Variables property returns the Variables collection object. Read-only.
oSNMPManager.Variables
Object (Variables collection)
(none)
Windows NT/2000/2003/XP only
The Get method sends an SNMP Get Request to the agent for all Variable objects within the Variables collection. If a valid response is received, the Type and Value property of all Variable objects is updated.
Long = oSNMPManager.Get( ErrorIndex )
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscSNMPSuccess = 0 | The Get operation completed successfully. |
| sscSNMPVariableOIDInvalid = 10 | The OID property of a Variable object specifies an invalid OID. The ErrorIndex parameter returns the one-based index of the Variable object. |
| sscSNMPDataTooBig = 40 | The agent could not place the results of the requested operation into a single SNMP message. |
| sscSNMPTimeout = 50 | The request timed-out. |
| sscSNMPUnspecifiedError = 60 | An error other than one of those listed here occurred during the requested operation. |
| sscSNMPVariableListEmpty = 70 | The Variables collection is empty. |
| sscSNMPSupportNotAvailable = 80 | SNMP support is not available. |
On Windows 98 this method will always return sscSNMPSupportNotAvailable.
Windows NT/ 2000/2003/XP only
The GetNext method sends an SNMP GetNext Request to the agent for all Variable objects within the Variables collection. If a valid response is received, the OID, Type and Value property of all Variable objects is updated.
Long = oSNMPManager.GetNext( ErrorIndex )
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscSNMPSuccess = 0 | The GetNext operation completed successfully. |
| sscSNMPVariableOIDInvalid = 10 | The OID property of a Variable object specifies an invalid OID. The ErrorIndex parameter returns the one-based index of the Variable object. |
| sscSNMPDataTooBig = 40 | The agent could not place the results of the requested operation into a single SNMP message. |
| sscSNMPTimeout = 50 | The request timed-out. |
| sscSNMPUnspecifiedError = 60 | An error other than one of those listed here occurred during the requested operation. |
| sscSNMPVariableListEmpty = 70 | The Variables collection is empty. |
| sscSNMPSupportNotAvailable = 80 | SNMP support is not available. |
On Windows 98 this method will always return sscSNMPSupportNotAvailable.
Windows NT/ 2000/2003/XP only
The Set method sends an SNMP Set Request to the agent for all Variable objects within the Variables collection.
Long = oSNMPManager.Set( ErrorIndex )
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscSNMPSuccess = 0 | The Set operation completed successfully. |
| sscSNMPVariableOIDInvalid = 10 | The OID property of a Variable object specifies an invalid OID. The ErrorIndex parameter returns the one-based index of the Variable object. |
| sscSNMPVariableBadValue = 20 | The Value property of a Variable object specifies is invalid. The ErrorIndex parameter returns the one-based index of the Variable object. |
| sscSNMPVariableReadOnly = 30 | An attempt was made to change the value of an SNMP variable which is read-only. The ErrorIndex parameter returns the one-based index of the Variable object. |
| sscSNMPDataTooBig = 40 | The agent could not place the results of the requested operation into a single SNMP message. |
| sscSNMPTimeout = 50 | The request timed-out. |
| sscSNMPUnspecifiedError = 60 | An error other than one of those listed here occurred during the requested operation. |
| sscSNMPVariableListEmpty = 70 | The Variables collection is empty. |
| sscSNMPSupportNotAvailable = 80 | SNMP support is not available. |
On Windows 98 this method will always return sscSNMPSupportNotAvailable.
Windows NT SP3+/2000/2003/XP only
The GenerateTrap method generates an SNMP trap. The trap is sent to all configured trap destinations.
Long = oSNMPManager.GenerateTrap( EnterpriseOID, GenericTrap, SpecificTrap, ErrorIndex )
- sscGenericTrapColdStart (=0)
sscGenericTrapWarmStart (=1)
sscGenericTrapLinkDown (=2)
sscGenericTrapLinkUp (=3)
sscGenericTrapAuthenticationFailure (=4)
sscGenericTrapEGPNeighborLoss (=5)
sscGenericTrapEnterpriseSpecific (=6)
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscSNMPSuccess = 0 | The GenerateTrap operation completed successfully. |
| sscSNMPVariableOIDInvalid = 10 | The OID property of a Variable object specifies an invalid OID. The ErrorIndex parameter returns the one-based index of the Variable object. |
| sscSNMPVariableBadValue = 20 | The Value property of a Variable object specifies is invalid. The ErrorIndex parameter returns the one-based index of the Variable object. |
| sscSNMPDataTooBig = 40 | The agent could not place the results of the requested operation into a single SNMP trap message. |
| sscSNMPTimeout = 50 | The operation timed-out. |
| sscSNMPUnspecifiedError = 60 | An error other than one of those listed here occurred during the requested operation. |
| sscSNMPSupportNotAvailable = 80 | SNMP support is not available. |
| sscSNMPTrapGeneratorExtensionNotLoaded = 90 | The STGenExt.dll module has not been registered or the SNMP service is not running. |
| sscSNMPEnterpriseOIDInvalid = 100 | An invalid enterprise OID was specified. |
| sscSNMPGenericTrapIDInvalid = 110 | An invalid generic trap id was specified. |
| sscSNMPSpecificTrapIDInvalid = 120 | An invalid specific trap id was specified. |
On Windows 98 this method will always return sscSNMPSupportNotAvailable.
The following requirements must be met to generate SNMP traps:
The Variables collection contains Variable objects. This collection object is accessed by the Variables property of the SNMPManager object.
| Name | Type | Access |
|---|---|---|
| Count | Long | Read-only |
| Item (default) | Variable object | Read-only |
| Name | Parameters |
|---|---|
| Add | OID as String, (optional) Type as Long, (optional) Value as Variant |
| Remove | Index as Variant |
| RemoveAll | (none) |
(none)
The Count property returns the number of Variable objects in the collection. Read-only.
oVariablesColl.Count
Long
(none)
The Item property returns a single Variable object from the collection. Read-only.
oVariablesColl.Item( Index )
Object (Variable)
The Item property works like an accessor property for small collections.
The Item(Index) syntax selects a Variable object within the Scripts collection.
If the specified Variable object is not found in the collection, the Item property returns Nothing.
To iterate through all Variable objects in the Variables collection, use the For...Each statement in VBScript and the Enumerator object in JScript.
Although the Item property itself is read-only, the Variable object it returns can be accessed in the normal manner, and its properties retain their respective read/write or read-only attributes.
The Add method creates a Variable object and adds it to the collection.
oVariable = oVariablesColl.Add( OID, Type, Value )
If this parameter is not specified, it defaults to sscASNNull (=5).
The method returns the object it has created.
(none)
The Remove method removes the specified Variable object from the collection.
oVariablesColl.Remove( Index )
(none)
(none)
The RemoveAll method removes all Variable objects from the collection.
oVariablesColl.RemoveAll()
(none)
(none)
(none)
A Variable object represents an SNMP variable binding.
| Name | Type | Access |
|---|---|---|
| OID | String | Read-write |
| Type | Long | Read-write |
| Value (default) | Variant | Read-write |
| ValueX | Variant | Read-only |
(none)
(none)
The OID property specifies the OID of the SNMP variable. Read-write.
oVariable.OID
String
The OID property is assumed to contain an absolute OID, no matter if the OID string starts with a dot or not. This means that "1.3.6.1.2.1.1.2.0" and ".1.3.6.1.2.1.1.2.0" are treated identically.
The Type property specifies the ASN type of the SNMP variable. Read-write.
oVariable.Type
Long
The Type property may contain one of the following constants:
sscASNInteger32 (=2)
sscASNBits (=3)
sscASNOctetString (=4)
sscASNNull (=5)
sscASNObjectIdentifier (=6)
sscASNIPAddress (=64)
sscASNCounter32 (=65)
sscASNGauge32 (=66)
sscASNTimeTicks (=67)
sscASNOpaque (=68)
sscASNCounter64 (=70)
sscASNUnsigned32 (=71)
The Value property specifies the value of the SNMP variable. Read-write.
oVariable.Value
Variant
Dependent on the Type property, the Variant sub-type is either String or Long, as can be seen in the following table:
| Type | Variant Sub-Type |
|---|---|
| sscASNInteger32 (=2) | Long |
| sscASNBits (=3) | String |
| sscASNOctetString (=4) | String |
| sscASNObjectIdentifier (=6) | String |
| sscASNIPAddress (=64) | String |
| sscASNCounter32 (=65) | Long |
| sscASNGauge32 (=66) | Long |
| sscASNTimeTicks (=67) | Long |
| sscASNOpaque (=68) | String |
| sscASNCounter64 (=70) | String |
| sscASNUnsigned32 (=71) | Long |
The ValueX property returns the value of the SNMP variable encoded as a hex-digit string. Read-only.
oVariable.ValueX
Variant
This property will only return a hex-digit string if the property value contains a string.
| ProgID | SScripting.SSHSupport |
| File name | SScrRun.dll |
| CLSID | 2B6A6DD7-8D36-11D2-8D8F-00A024D26D2E |
| IID | 2B6A6DD6-8D36-11D2-8D8F-00A024D26D2E |
(none)
| Name | Parameters |
|---|---|
| PostIPCEvent | Destination as String, EventID as Long, Parameter as String |
The PostIPCEvent method posts an IPC event to the specified destination script or broadcasts it to all scripts of the specified System Scripting Host application.
Boolean =
oSSHSupport.PostIPCEvent(
Destination,
EventID,
Parameter
)
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscIPCSuccess = 0 | IPC event has been successfully posted. |
| sscIPCInvalidDestination = 10 | The specified destination string is invalid. |
| sscIPCHostUnreachable = 20 | The specified destination host could not be reached. |
| sscIPCApplicationUnreachable = 30 | The specified SSH application does not exist, is not running or not configured for receiving IPC events. |
| sscIPCInvalidScriptName = 40 | The specified script does not exist. |
| sscIPCScriptNotRunning = 50 | The specified script is stopped. |
| sscIPCDataTransferError = 60 | An error occurred while transferring the event data to the destination. |
| sscIPCInvalidParameter = 100 | On or more of the provided parameters contain an invalid value. |
| sscIPCSocketError = 110 | An WinSocket related error occurred. |
| sscIPCInvalidHostAddress = 120 | The specified host address (hostname or IP-address) is invalid. |
An IPC event for the destination script will only be generated if the destination script has registered an IPC notification for the specified EventID. If the destination script exists and is running, but no IPC event is generated because the destination has no matching IPC notification registered, the PostIPCEvent method will nonetheless report success (TRUE).
| ProgID | SScripting.System |
| File name | SScrRun.dll |
| CLSID | 2B6A6DD9-8D36-11D2-8D8F-00A024D26D2E |
| IID | 2B6A6DD8-8D36-11D2-8D8F-00A024D26D2E |
| Type | Access | |
|---|---|---|
| CurrentDirectory | String | Read-only |
| OperatingSystem | String | Read-only |
| ProcessorCount | Long | Read-only |
| ProcessorDescription | String | Read-only |
| ProductType | Long | Read-only |
| SystemDirectory | String | Read-only |
| TempPath | String | Read-only |
| TotalMemory | Long | Read-only |
| UserName | String | Read-only |
| WindowsDirectory | String | Read-only |
| Name | Parameters |
|---|---|
| GetDriveType | (optional) Drive as String |
| GetFreeDiskSpace | (optional) Directory as String |
| GetLocalTime | |
| GetSystemTime | |
| GetTotalDiskSpace | (optional) Directory as String |
| SetLocalTime | LocalTime as Date |
| SetSystemTime | SystemTime as Date |
| Shutdown | Type as Long, (optional) Force as Boolean |
| Sleep | Duration as Long |
The CurrentDirectory property returns the path of the current directory for the current process. Read-only.
oSystem.CurrentDirectory
String
(none)
The OperatingSystem property returns a string which contains the platform, version and build number of the running operating system. Read-only.
oSystem.OperatingSystem
String
If the platform is Windows NT, an installed Service Pack will also be indicated.
The ProcessorCount property returns the number of processors in the system. Read-only.
oSystem.ProcessorCount
Long
(none)
Windows NT/2000/XP only
The ProcessorDescription property returns a string which contains the CPU identifier, vendor identifier and CPU speed. Read-only.
oSystem.ProcessorDescription
String
On Windows 98 this method will return the empty string ("") .
Windows NT / Windows 2000 only
The ProductType property returns a number which identifies the product type of
the OS. It is one of the following values:
sscProductTypeUnknown (= -1),
sscProductTypeWorkstation (=
0),
sscProductTypeServer (= 1),
sscProductTypeDomainController
(= 2).
Read-only.
oSystem.ProductType
Long
On Windows 98 this property will always return sscProductTypeUnknown (= -1).
The SystemDirectory property returns the path of the system directory. Read-only.
oSystem.SystemDirectory
String
(none)
The TempPath property returns the path of the directory designated for temporary files. Read-only.
oSystem.TempPath
String
(none)
The TotalMemory property returns the installed RAM size in MB . Read-only.
oSystem.TotalMemory
Long
(none)
The UserName property returns the name of the user account which is associated with the current thread. Read-only.
oSystem.UserName
String
(none)
The WindowsDirectory property returns the path of the Windows directory. Read-only.
oSystem.WindowsDirectory
String
(none)
The GetDriveType method returns the type of the specified drive.
Long = oSystem.GetDriveType( Drive )
The method returns one of the following result codes:
| Result Code | Description |
|---|---|
| sscDriveTypeUnknown = 0 | The drive type cannot be determined. |
| sscDriveTypeInvalid = 1 | The specified drive does not exist. |
| sscDriveTypeRemovable = 2 | The disk can be removed from the drive. |
| sscDriveTypeFixed = 3 | The disk cannot be removed from the drive. |
| sscDriveTypeRemote = 4 | The drive is a remote (network) drive. |
| sscDriveTypeCDROM = 5 | The drive is a CD-ROM drive. |
| sscDriveTypeRAMDisk = 6 | The drive is a RAM disk. |
(none)
The GetFreeDiskSpace method returns the free disk space in KB available on the disk on which the specified directory is located.
Long = oSystem.GetFreeDiskSpace( Directory )
The method returns the free disk space in KB or -1 if it fails.
(none)
The GetLocalTime method returns the current local time and date.
Date = oSystem.GetLocalTime()
(none)
The method returns as a date value the current local time and date.
(none)
The GetSystemTime method returns the current system time and date. The system time is expressed in Coordinated Universal Time (UTC).
Date = oSystem.GetSystemTime()
(none)
The method returns as a date value the current system time and date.
(none)
The GetTotalDiskSpace method returns the total disk space in KB of the disk on which the specified directory is located.
Long = oSystem.GetTotalDiskSpace( Directory )
The method returns the total disk space in KB or -1 if it fails.
The following restrictions apply to the initial release of Windows 95:
The SetLocalTime method sets the current local time and date.
Boolean = oSystem.SetLocalTime( LocalTime )
The method returns TRUE if it succeeds, FALSE if it fails.
(none)
The SetSystemTime method sets the current system time and date. The system time is expressed in Coordinated Universal Time (UTC).
Boolean = oSystem.SetSystemTime( SystemTime )
The method returns TRUE if it succeeds, FALSE if it fails.
(none)
The Shutdown method either logs off the current user, shuts down the system, or shuts down and restarts the system, or shuts down and powers off the system.
Boolean = oSystem.Shutdown( Type, Force )
The method returns TRUE if it succeeds, FALSE if it fails.
(none)
The Sleep method suspends execution of the calling thread for the specified duration in milliseconds.
oSystem.Sleep( Duration )
(none)
(none)
A peer-to-peer newsgroup is available to help you interact with other System Scripting Runtime users. You can use any newsreader software to access this newsgroup. Regardless of the newsreader or news client you are using, you may need to configure it to read the newsgroup. When prompted for the name of the news server, specify news.netal.com. You do not need to enter an account name or password.
There is currently one newsgroup dedicated to the product System Scripting Runtime:
General (netal.ssr.general)
Another way to provide feedback is by sending e-mail to bugreport@netal.com if you detect a bug, or by sending e-mail to featurerequest@netal.com if there is anything else that you would like to see implemented in this product in the future.
If you have a technical question about System Scripting Runtime, post it to the newsgroup mentioned above. We monitor this newsgroup regularly and will try to answer questions as soon as possible.
© 1999-2007 Franz Krainer
These materials are provided as-is, for informational purposes only.
Neither Franz Krainer nor his suppliers makes any warranty, express or implied with respect to the content of these materials or the accuracy of any information contained herein, including, without limitation, the implied warranties of merchantability or fitness for a particular purpose. Because some states/jurisdictions do not allow exclusions of implied warranties, the above limitation may not apply to you.
Neither Franz Krainer nor his suppliers shall have any liability for any damages whatsoever including consequential, incidental, direct, indirect, special, and lost profits. Because some states/jurisdictions do not allow exclusions of implied warranties, the above limitation may not apply to you.
2007-07-24
www.netal.com
Franz Krainer
franzk@netal.com