You can request remote server file size using GetAttributes Method. Result will be received inside Attributes Event in Size parameter.
[code]Sftp1.GetAttributes( /home/something/somefile.txt )
Private Sub Sftp1_AttributesEvent(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.SFTP.AttributesArgs) Handles Sftp1.AttributesEvent
MsgBox(Args.Size)
End Sub[/code]
Let us know how it goes.
Actually you should try exactly what I mention in my last post. Of course you should first connect to your SFTP server using wodSFTP.NET.
sftp1 in my example is wodSFTP.NET reference:
Dim WithEvents Sftp1 As WeOnlyDo.Client.SFTP
So you don't need to reference GetAttributes Method.
Did you try maybe wodSFTP.NET examples maybe? You can find them in component Samples folder.
Maybe they can help you to start developing with wodSFTP.NET.
Drazen
This has been, by far, the best experience I have ever had dealing with a support entity in my long career in the technical arena
Frank Kloskowski
GlobalCare Inc.
...wodFtpDlx was exactly what I needed, it worked, and it was priced right...
David Keenan
Serengeti Systems Incorporated
Don't be fooled by the cost, it's value and quality far exceeds the price being charged!
Ian D. Mead, author of UltraEdit-32
IDM Computer Solutions
Count us as a satisfied WeOnlyDo customer. We appreciate your terrific support to get the secure Telnet working properly.
Don Fitzpatrick
InterNetworx Systems
Not only wodSFTPdll is excellent, the service you have provided is outstanding and second to none!
Ian D. Mead, author of UltraEdit-32
IDM Computer Solutions
I can only hope I will have the pleasure to work with other products by "We Only Do" in the future.
Tomer Spivak
Verint Systems Ltd
May I say how nice it is to work with components so complete and self-explanatory that using them in my application is as instinctive as though I wrote them myself?
Michael Barnett
Full Spectrum Telecommunications
...wodFtpDlx was exactly what I needed, it worked, and it was priced right...
David Keenan
Serengeti Systems Incorporated
Your support is fantastic.
Douglas Michael Panchyshyn
The Net Software Group
We are having great success with your component ... email server that has over 750 000 mailboxes back ended by a SQL server...