CaptureOutput

Method of IApplication

Captures tool output

  • BSTR strCmdLine
  • BSTR strInitialDir = "" (optional)
  • BSTR strExitCmd = "" (optional)
  • ULONG nCodePage = 0 (optional)

Return Value

JavaScript

var pstrResult = Application.CaptureOutput(strCmdLine, strInitialDir, strExitCmd, nCodePage);

Visual Basic Script

pstrResult = Application.CaptureOutput strCmdLine, strInitialDir, strExitCmd, nCodePage

C++

BSTR pstrResult;
HRESULT hr = Application.CaptureOutput(strCmdLine, strInitialDir, strExitCmd, nCodePage, &pstrResult);