Download Now
Forums

    Reference Codebot.Process.pas

    Part of the Codebot package

    The Codebot.Process unit runs other programs.

    TExternalCommand is a component that runs a program, reads its output one line at a time through OnLineRead, and invokes OnComplete when the program ends. With BufferOutput, which is on by default, every line is also kept in Output. You can stop the program with Kill, and EExternalCommandException is raised if it can't be run.

    RunCommand is a simpler way to run a program with up to three arguments, wait for it to finish, and optionally collect its output in a TStrings.

    Items 15 items

    NameKindLine
    EExternalCommandExceptionclass28
    RunCommandprocedure76, 77, 78, 79
    TExternalCommandclass33
    Createconstructor50
    Destroydestructor52
    Killprocedure56
    Runprocedure54
    Argumentsproperty65
    BufferOutputproperty67
    Commandproperty63
    OnCompleteproperty71
    OnLineReadproperty69
    Outputproperty58
    Runningproperty60
    TLineReadEventprocedural24