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
...with WOD's excellent support I was able to bypass Winsock and focus on the task at hand...
Sander Pool
Rhapsody Networks
Congratulations on an excellent product and first rate support!
Sander Pool
Rhapsody Networks
The people at WeOnlyDo are amazing! ... I always get a super fast response from customer service, and the products are great too. Thanks WeOnlyDo
Jeff Hall
Occupational Health Research
We have recently completed a large 1200+ location project where reliable Telnet and SSH connectivity was required. wodSSH worked flawlessly and allowed our staff to complete our project ontime and within budget.
James Sievers
Harbor Technologies
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
Brilliant, even works on the mobile phone...
Conrad Leigh
Leaf Wireless
Congratulations on an excellent product and first rate support!
Sander Pool
Rhapsody Networks
Thank you for the great customer service ... I am really impressed with the wodSSH ActiveX control.
Andrew Ross
Kiwi Enterprises
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
It was no small factor, however, that your support in getting me up and running made me buy from you.