Skip to content

GetClientVersion()

ts
GetClientVersion(): string;

Returns the client software name and version, if available.

NOTE

Not all client software provides this information. If unavailable, this function returns an empty string.

Example

ts
{
  if (Session) {
    var client = Session.GetClientVersion();
    Log('Client software is: ' + client);  // ex: WinSCP_5.10.12
  } else {
    Log('Session object is not available.');
  }
}