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
The SFTP ocx is one of the finest pieces of programming I have seen. It worked out of the box...
Kenneth R. Robinette
InterSoft International
...what I really like is that wodSSH and wodSFTP components work excellently and are constantly being improved...
Steven Jones
SABIEN project
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
We are having great success with your component ... email server that has over 750 000 mailboxes back ended by a SQL server...
Conrad Leigh
Leaf Wireless
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
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
Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...
Chris Langsenkamp
Clever Technologies
Many thanks for your excellent support service. I can see why you have a long list of excellent testimonials on your website.
Martyn Walker
Batmore Technolgies
Thanks! We love your software and your great support!
Sandy Fliderman
Primary Development Corporation
You did a great job on wodSSH and wodSSHServer! I got a lot for very little money. Thanks!