martin 2014-01-10 mxcolin wrote: Any plans for adding this in anytime soon? Will consider it. Meanwhile you can dump the exit code to the command output and parse it out yourself.
martin Re: Retrieve Exit Code from Session.ExecuteCommand 2013-08-14 No, indeed there's no way to retrieve the exit code.
mxcolin Retrieve Exit Code from Session.ExecuteCommand 2013-08-12 22:04 I'm using ExecuteCommand on the Session class to call a command remotely however I cannot get at the exit code? CommandExecutionResult result = session.ExecuteCommand(command.Executable + " " + command.Arguments); Will throw a SessionRemoteException if the command fails but there's no way to know what the exit code is? Thanks Colin