Re: example VB.NET
can someone show me an example in VB.NET?
I never really understood this EventHandler stuff :/
See https://winscp.net/eng/docs/library_session_filetransferprogress#vbnet
can someone show me an example in VB.NET?
I never really understood this EventHandler stuff :/
Oh please me too! I hope this becomes a standard piece soon. :D
Great tool btw!
I am interested in the FileTransferProgress as well. Would you please provide me with the development version.
This request is being tracked already:
https://winscp.net/tracker/818
I'm sending you an email with a development version of WinSCP to address you have used to register on this forum.
When I callsession.FileTransferProgress += FileTransferProgress;
I gotexception. Please helpSession is already opened
session.FileTransferProgress += FileTransferProgress;
Session is already opened
I can't find anything like filetransferprogress.
$session|get-member shows following members of $session object
session.FileTransferred += FileTransferred;
session.FileTransferProgress += FileTransferProgress;
void FileTransferProgress(object sender, FileTransferProgressEventArgs e)
{
Console.WriteLine("file name: {0}", e.FileName);
Console.WriteLine("directory: {0}", e.Directory);
Console.WriteLine("File progress: {0}", Math.Truncate(e.FileProgress * 100).ToString());
Console.WriteLine("Global progress: {0}", Math.Truncate(e.OverallProgress * 100).ToString());
}
TypeName: WinSCP.Session
Name MemberType Definition
---- ---------- ----------
Failed Event WinSCP.FailedEventHandler Failed(System.Object, WinSCP.FailedEventArgs)
FileTransferred Event WinSCP.FileTransferredEventHandler FileTransferred(System.Object, WinSCP.TransferEventArgs)
OutputDataReceived Event WinSCP.OutputDataReceivedEventHandler OutputDataReceived(System.Object, WinSCP.OutputDataReceivedEventArgs)
Abort Method void Abort()
CreateDirectory Method void CreateDirectory(string path)
Dispose Method void Dispose(), void IDisposable.Dispose()
Equals Method bool Equals(System.Object obj)
EscapeFileMask Method string EscapeFileMask(string fileMask)
ExecuteCommand Method WinSCP.CommandExecutionResult ExecuteCommand(string command)
FileExists Method bool FileExists(string path)
GetField Method System.Reflection.FieldInfo IReflect.GetField(string name, System.Reflection.BindingFlags bindingAttr)
GetFields Method System.Reflection.FieldInfo[] IReflect.GetFields(System.Reflection.BindingFlags bindingAttr)
GetFileInfo Method WinSCP.RemoteFileInfo GetFileInfo(string path)
GetFiles Method WinSCP.TransferOperationResult GetFiles(string remotePath, string localPath, bool remove, WinSCP.TransferOptions options)
GetHashCode Method int GetHashCode()
GetMember Method System.Reflection.MemberInfo[] IReflect.GetMember(string name, System.Reflection.BindingFlags bindingAttr)
GetMembers Method System.Reflection.MemberInfo[] IReflect.GetMembers(System.Reflection.BindingFlags bindingAttr)
GetMethod Method System.Reflection.MethodInfo IReflect.GetMethod(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, type[] t...
GetMethods Method System.Reflection.MethodInfo[] IReflect.GetMethods(System.Reflection.BindingFlags bindingAttr)
GetProperties Method System.Reflection.PropertyInfo[] IReflect.GetProperties(System.Reflection.BindingFlags bindingAttr)
GetProperty Method System.Reflection.PropertyInfo IReflect.GetProperty(string name, System.Reflection.BindingFlags bindingAttr), System.Reflection.PropertyInfo IRefl...
GetType Method type GetType()
InvokeMember Method System.Object IReflect.InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target,...
ListDirectory Method WinSCP.RemoteDirectoryInfo ListDirectory(string path)
MoveFile Method void MoveFile(string sourcePath, string targetPath)
Open Method void Open(WinSCP.SessionOptions sessionOptions)
PutFiles Method WinSCP.TransferOperationResult PutFiles(string localPath, string remotePath, bool remove, WinSCP.TransferOptions options)
RemoveFiles Method WinSCP.RemovalOperationResult RemoveFiles(string path)
SynchronizeDirectories Method WinSCP.SynchronizationResult SynchronizeDirectories(WinSCP.SynchronizationMode mode, string localPath, string remotePath, bool removeFiles, bool m...
ToString Method string ToString()
AdditionalExecutableArguments Property string AdditionalExecutableArguments {get;set;}
DebugLogPath Property string DebugLogPath {get;set;}
DefaultConfiguration Property bool DefaultConfiguration {get;set;}
DisableVersionCheck Property bool DisableVersionCheck {get;set;}
ExecutablePath Property string ExecutablePath {get;set;}
IniFilePath Property string IniFilePath {get;set;}
Opened Property bool Opened {get;}
Output Property WinSCP.StringCollection Output {get;}
ReconnectTime Property timespan ReconnectTime {get;set;}
SessionLogPath Property string SessionLogPath {get;set;}
Timeout Property timespan Timeout {get;set;}
UnderlyingSystemType Property type UnderlyingSystemType {get;}
XmlLogPath Property string XmlLogPath {get;set;}
I m very interested in this developpement version; I m a donator but the nighty build only diffuse the .exe and *.com version of winscp.
is there a possibility to obtain the last developpement version too ?
...I'm sending you an email with a development version of WinSCP to address you have used to register on this forum.