That syntax seems to be working now, the exception was actually being generated somewhere else.
Now I'm having trouble trying to capture the results of my
seems to generate an exception regardless of the success or failure of the command. I try to compare
immediately after executing the command but that code is never executed because execution has jumped to the exception -
CommandExecutionResult ceResult = session.ExecuteCommand("ls /www");
if (ceResult.Output.ToUpper().Contains("NO SUCH FILE OR DIRECTORY"))
I've got the help doco on how to capture results of operations, but I'm still unsure what to do. Do I need to create an instance of one of the
? If so, is there an example of how that is done following