Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSFTP
- Methods
- Abort
- About
- AppendData
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FingerPrint
- FIPS
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Events
- Methods
- IwodSFTPNotify
- SftpItem
- SftpItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
ExtendedCmd method
Sends extended command to the server.
Type
NoneSyntax
- Basic
object.ExtendedCmd Command, Data
The ExtendedCmd(object,Command,Data) syntax has these parts:
The ExtendedCmd(object,Command,Data) syntax has these parts:
object | An expression evaluating to an object of type wodSFTP. |
Command | Required. A String value. Command text. |
Data | Required. A Variant value. Command data, if any. |
Remarks
This method will send SSH_FXP_EXTENDED packet to remote server. It is assumed that Data argument contains preformatted data that follows rules of SSH protocol, and that follows rules of extended command that is being sent. If you provide Data with String or numeric value, then wodSFTP sends it with leading 4 bytes as their size, and then actual data. If you provide Data as byte array, then byte array is sent 'as is' without interference of wodSFTP.ExtendedCmdReply event will be fired if command was successful and has some data to return back. Done event will be fired if there was an error, or only simple OK was returned by remote side. Only of of those events will be fired, never both.
You should also check Extensions property to determine what extensions are supported by the server, since most of them will announce supported extensions during connection time.