Next Topic

Previous Topic

Book Contents

ExecuteCommand

bool ExecuteCommand(string sCommand,DWORD dwWait/*=2500*/)

Return values

Non zero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • sCommand - String with the command to execute on the remote host.
  • dwWait - (Optional) Time to wait for execution to finish, default 25 seconds.