Not really. The best I think you could do is change the variable name
from RoboFTPSession to ftp, and that should make it look a little better.
--
- Nicholas Paldino [.NET/C# MVP]
-
mvp@spam.guard.caspershouse.com
<dfetrow410@hotmail.com> wrote in message
news:1137096684.115293.17070@g44g2000cwa.googlegro ups.com...[color=blue]
> Is there a better way to break this out a bit?
>
> static void Main(string[] args)
> {
> try
> {
> int rc1;
> ROBOFTPAUTOMATIONLib.Automate RoboFTPSession = new
> ROBOFTPAUTOMATIONLib.Automate();
> RoboFTPSession = new Automate();
> rc1 = RoboFTPSession.RoboStartSession("PUC-FTP", 1, 0, "");
> rc1 = RoboFTPSession.RoboSendCommand("FTPLOGON \"ftp.xxxxxx.com\"
> /user=xxxxx /pw=xxxxxx", 10 * 10);
> rc1 = RoboFTPSession.RoboSendCommand("CHGDIR \"C:\\\"", 100 * 10);
> rc1 = RoboFTPSession.RoboSendCommand("FTPCD \"test\"", 100 * 10);
> rc1 = RoboFTPSession.RoboSendCommand("SENDFILE \"*.txt\"", 10000000
> * 10);
> rc1 = RoboFTPSession.RoboSendCommand("FTPLOGOFF", 10 * 10);
> rc1 = RoboFTPSession.RoboSendCommand("STOP", 10 * 10);
> }
> catch(Exception)
> {
>
> }
>
> }
>[/color]