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
I've heard that you are amazing with your replies coming back so quickly - and now I've seen the speed in which you reply first hand.
Andrew Narracott
Sun Computer Consultancy
You have been great as far as offering support is concerned and has been extremely responsive to both support requests and suggestions for product enhancements.
David Keenan
Serengeti Systems Incorporated
WeOnlyDo!COM will be the first stop I make should I require any further off-the-shelf components.
Dean Keigan
RBC Capital Markets
...not only that you provide these components at very reasonable cost, your responsiveness to emailed technical questions is simply outstanding...
Michael Thomas
ClownRed Media
...wodFtpDlx was exactly what I needed, it worked, and it was priced right...
David Keenan
Serengeti Systems Incorporated
...with WOD's excellent support I was able to bypass Winsock and focus on the task at hand...
Sander Pool
Rhapsody Networks
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
Your component works really great. With minor effort I have been able to convert my delphi application...
Gilles Hache
Cisco Systems Inc.
Thank you for the great customer service ... I am really impressed with the wodSSH ActiveX control.
Andrew Ross
Kiwi Enterprises
I can only hope I will have the pleasure to work with other products by "We Only Do" in the future.