Description
-
Sends file using specified protocol (ZMODEM).
Return Type
-
None
Syntax
-
object.SendFile (Protocol,
Filename, [ResumeTransfer], [ShowWindow])
The SendFile Method syntax has these parts:
| object |
An expression
evaluating to an object of type wodTelnetDLX. |
| Protocol |
Required. A
TransferProtocolsEnum enumeration, as described in settings.
Protocol to use for sending file (currently only ZMODEM is
supported). |
| Filename |
Required. Full path to a file
that will be sent. No wildcards are supported at this time. |
| ResumeTransfer |
Optional. A Variant
value. Should be set to True if you allow file transfer
to be resumed, or False if you want to overwrite remote
file. |
| ShowWindow |
Optional.
Exists only in GUI version of
wodTelnetDLX. A Variant
value. Determines if transfer window will be shown during the
transfer. |
Remarks
-
SendFile method is used to send file to the server using any of
supported protocols (ZMODEM is currently only supported protocol).
It is assumed that server has appropriate tools to accept such file
transfers (UNIX systems usually have rz and sz
commands to receive and send files). wodTelnetDLX will not send
these commands before transfer is started - so it is suggested you
send them manually before you call this method.
Typically you can do this:
- Private Sub Command1_Click()
wodTelnetDLX1.Send "rz" & vbLf
wodTelnetDLX1.SendFile ZMODEM, "c:\myfile.dat"
End Sub
to send a file. When transfer starts,
TransferStart event will be fired. When transfer completes,
TransferEnd event will fire.
|