VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Process Class

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.

Rate Process Class

Download Process Class

Download Process Class (6 KB)

Process Class Comments

No comments have been posted about Process Class. Why not be the first to post a comment about Process Class.

Post your comment

Subject:
Message:
0/1000 characters