The Addon will provide Batch/Command possibilities.  BAT/CMD files can be handled or BAT scripting can be included within the IT-Tool script code. Note that not every CMD function is implemented,  e.g. Input is not implemented. Since IT-Tool contains enough methods to obtain input, it should in general not be an issue.



Variables and Commands


PRRESULT

Returns the output from the last run

RW

PRFILENAME

Sets the filename of the program that needs to be executed.

RW

PRWORKINGDIRECTORY

Sets the working directory.

RW

PRARGUMENTS

Sets the arguments of the proves to be runned

RW

PREXITCODE

Returns the exitcode of the last run

RW

PRWRITEDIRECT

Determines if the output is directly send to the textbox or only to “PRRESULT”

RW

PROCESSSCRIPT

Runs the provide command script

W

PROCESSFILE

Runs the command script from the provided file.

W

PRTIMEOUT

Timeout in milliseconds, -1 is indefinite

RW

PRHANDLEERROR

Determines if  the ErrorStream of the process is handled the same as normal text (false) or separate (default=true).

RW

PRWATCHDOG

Watchdog timer in steps of  5 ms, -1 is disabled.
An internal counter checks if any action happens. The counter is automatically reset with each write.

W



Functions


ProcessFile(Filename As String, Optional Arguments As String = "", _

                         Optional WorkingDirectory As String = "") As String

ProcessScript(Script As String, Optional FileNameOrExtension As String = ".BAT") As String

Default type is .Bat. Other types can be used, however not all types will work correctly.




Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents