ExeScript Host Language
If you set Execution Type to Compile,
you can use the following properties and methods of the WScript
object implemented in ExeScript:
WScript.FullName - Full path to the executable file+exe
name. Example: c:\test\1.exe
WScript.Name = "ExeScript Host"
WScript.ScriptFullName - Work Directory + script name.
Example: "C:\Documents and Settings\Login\Local
Settings\Temp\untitled1.vbs"
WScript.ScriptName - Script file name. Example:
untitled1.vbs
WScript.Sleep(time) - Script delay, in milliseconds.
WScript.Version = 5.6
WScript.BuildVersion = 8820
WScript.Interactive = (true or false). Shows the ExeScript
property - SilentMode.
Note:
The relation is inverse here: If interactive=true, then
silentmode=false.
WScript.Echo [arg1] [,arg2] [,arg3] : - For displaying on
the screen according to the SilentMode and ScriptType
properties.
WScript.Arguments - Command line arguments either specified
in ExeScript properties or sent as exe file parameters.
WScript.Quit(result) - Terminating the script with the
specified error code result.
WScript.StdErr - Exposes the write-only error output
stream for the current script.
WScript.StdIn - Exposes the read-only input stream for the
current script.
WScript.StdOut - Exposes the write-only output stream for
the current script.
WScript.GetObject(strPathname [,strProgID], [strPrefix])
- Returns an existing object with the specified ProgID or creates a
new one from the file.
strPathname - The fully qualified path name of the file
that contains the object persisted to disk.
strProgID
Optional. The object's program identifier (ProgID).
strPrefix
Optional. Used when you want to sync the object's events. If you
supply the strPrefix argument, ExeScript connects the object's
outgoing interface to the script file after creating the
object.
WScript.CreateObject(strProgID[,strPrefix]) - Creates a
COM object.
strProgID
String value indicating the programmatic identifier (ProgID) of the
object you want to create.
strPrefix
Optional. String value indicating the function prefix.
Wscript.ConnectObject(objEventSource, strPrefix) - Connects the object's event sources to functions with a given prefix.
objEventSource
Required. Object you want to connect.
strPrefix
Required. String value indicating the function prefix.
Wscript.DisconnectObject(obj) - Disconnects a connected object's event sources.
Obj - String value indicating the name of the object to disconnect.
See also:
ExeScript Host
Using ExeScript Host
ExeScript Host Object
Model
Copyright © ScriptCode.com 2010. All rights reserved.