Programming with Reflection

image\rwnprg32.gif Host File Attributes and Switches


When sending a file to the host, you can use an optional argument to the WRQSendFile method to specify which attributes the file should receive on the host system. If you omit this argument, the file receives default host attributes. You can specify attributes for VMS, HP 3000, or UNIX hosts.

In addition, when receiving a file from the host, you can receive the file with its host attributes, specify whether Fortran and Print carriage control characters should be translated, and whether to force block reads. The properties that control these options are WRQTransferWithAttributes, WRQTranslateCCtl, and WRQUseBlockReads.

There are also a number of settings you can use to modify the way a file is handled when it is sent or received. These settings are available both as properties and as "switches." The properties all begin with the letters "WRQ" and remain in effect for all transfers that use the WRQ/Reflection protocol until you change the property or until you exit Reflection without saving your settings. The switches are temporary and are in effect only for the current transfer; to use the switch form of a setting, append the switch you want to the host file's name in the WRQSendFile or WRQReceiveFile method. There are both VMS switches and HP 3000 switches available.

Most host file attributes and switches also have equivalent check boxes in the File Transfer Setup dialog box.


image\jump.gif Example

image\popup.gif Related Topics