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
...your service has been phenomenal. It's always quick and you are there when I need you.
James Newman
Castleberry Investments
...what I really like is that wodSSH and wodSFTP components work excellently and are constantly being improved...
Steven Jones
SABIEN project
Thank you very much for the rapid responses. I was a little nervous about dealing with a company that is on a different continent from me. You have proven my concerns to be unfounded.
Robert Pacheco
Surebridge, Inc.
Your .NET components allow us to blend .NET technology seamlessly with secure communication, and with excellent technical support.
Bil Bragg
Dionach
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
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
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
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 service has been phenomenal. It's always quick and you are there when I need you.