The SendFile method sends the specified
local file to the host.
- Syntax
- object.SendFile( LocalName, HostName )
- Parameters
- LocalName
- Data type: String
- The local
file name to send to the iSeries host. If no path is given, the object
uses the directory specified in the CurrentDirectory property.
If no file name is given, the object uses the file name specified
in the LocalFile property.
- HostName
- Data type: String
- The iSeries
host file used. For example, Library/File or Library/File(Member).
If HostName is blank, the object uses the iSeries
file specified in the RemoteFile property.
- Returns
Data type: Long
If the transfer is successful, the return
value is 0. To get the error message, use the ErrorMessage property.
Refer to ErrorMessage property for
more information.