by David Robitaille (1 Submission)
Category: Miscellaneous
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)

Handle process (in background) and trap all console inputs and outputs.
Inclute a test GUI to show how it works.
Inputs
A command line.
StdInput
Assumes
'Init the class with setProcess()
'start process with Run()
'Check the state of execution with Finished()
'Then check if you get an error with inError()
'and get strOutput (with getstrOutput(TRUE)) or/and strError when needed
'use StdInput(strInput As String) to write to the process
'close the process with clean
'Dont forget that you need to Check the state of execution with Finished()
'before getting anyting from strOutput, strError or intError
Code Returns
StdOutput
StdError
Dos error level.
Download Process Class (6 KB)