Programming with Reflection

image\rwnprg32.gif IndSendFile method


Syntax object.IndSendFile LocalFile, HostFile, Type, ExistsOption, ShowStat



Transfers a file from the PC to the host, using the IND$FILE protocol.


LocalFile Argument type: String
Specifies a local file. Provide complete path information—otherwise the file can only be found if it's in the current directory. You cannot use wildcard characters to send multiple files, as you can when you use the Transfer screen.

HostFile Argument type: String
Specifies a name for the file being transferred. This name must comply with host file naming conventions. You cannot use an empty string.

Type Argument type: Enumeration
Specifies what type of file is being transferred. The values are:


 Use this value for text files with no special formatting.


 Use this value for program and application files and for files with special formatting.

ExistsOption Argument type: Enumeration
Specifies what to do if the file specified in the HostFile argument already exists:


 Prompts the user to overwrite the existing file, append new data to the existing file, or terminate the transfer. An error results if the user then clicks Cancel.


 Replaces the existing file.


 Causes IndSendFile to return an error .


 Adds the local file contents to an existing host file.

ShowStat Argument type: Boolean
Use rcYes to display the Transfer in Progress window while the transfer is in progress, or rcNo to not display the Transfer in Progress window.


If you're having trouble getting a transfer to work, make sure the XfrHostSys property is set to the appropriate value.


image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command