Differences
This shows you the differences between the selected revisions of the page.
| 2012-01-11 | 2012-01-13 | ||
| using Session, no need to check for an error (martin) | exit code (martin) | ||
| Line 43: | Line 43: | ||
| using WinSCP; | using WinSCP; | ||
| - | class Test | + | class Example | 
| { | { | ||
| - | static void Main() | + | public static int Main() | 
| { | { | ||
| try | try | ||
| Line 78: | Line 78: | ||
| } | } | ||
| } | } | ||
| + | |||
| + | return 0; | ||
| } | } | ||
| catch(Exception e) | catch(Exception e) | ||
| { | { | ||
| Console.WriteLine("Error: {0}", e); | Console.WriteLine("Error: {0}", e); | ||
| + | return 1; | ||
| } | } | ||
| } | } | ||