Host Attribute Examples

The following example shows the WRQSendFile syntax for sending a file to a VMS host, setting the host record size of the file to 256 bytes:

Session.WRQSendFile "docfile.txt", "docfile.txt",,,,,,"/size=(256)"

The next example shows the WRQSendFile syntax for sending a file to an HP 3000 host, creating a temporary file on the host with 256-byte records:

Session.WRQSendFile "docfile.txt", "docfile",,,,,,"temp;recsize=256"

The next example shows the WRQSendFile syntax for sending a file to a UNIX host, specifying the user "joant" as the owner of the file:

Session.WRQSendFile "docfile.txt", "docfile.txt",,,,,,"-o joant"

The multiple commas in the above examples are placeholders for arguments of the WRQSendFile method that are not specified.

Filename Switch Examples

The following example shows the WRQSendFile syntax for sending a file to a VMS host, submitting the file to the print queue after the transfer is complete:

Session.WRQSendFile "docfile.txt", "docfile.txt/S"

The next example shows the WRQSendFile syntax for sending a file to an HP 3000 host in Qedit format:

Session.WRQSendFile "docfile.txt", "docfile;Q"