Run

Executes a program.

Parameters:

CommandStr  -  Name of program executable and any command-line arguments to run.

Returns:

0 for success; or a non-zero error code.  See Error Codes for a complete listing of error code descriptions.

Remarks:

None

Example:

Set Host = CreateObject( "BZWhll.WhllObj" )

 

Host.Run "C:\BlueZone\Bzmd.Exe /s2 /fsystem2.zmd"

Host.Pause 7

 

ResultCode = Host.Connect "A"

If ( ResultCode = 0 ) Then

  'interact with host

End If

 

Host.CloseSession 0, 2

 

Host.Run "Calc"