Re: Timeout Property - WeOnlyDo Discussion board

Re: Timeout Property (General questions)

by woddrazen, Tuesday, July 07, 2009, 18:39 (5397 days ago) @ kdcarlisle

Kent,


Looking at your code I see that you read ListNames output in memory stream and then convert it to string.

Why don't you use ListItem Property instead? ListItem Property hold string result from ListNames and ListDir Method.

Can you maybe try something like this without memory stream:[code]...
ftp.ListNames(txtLocation.Text);
string tmpFileName = ftp.ListItem;
MessageBox.Show( File: + tmpFileName);
...[/code]
Let us know how it goes.


Drazen


Complete thread: