PASSPORT Knowledge Base
Macros

Date Published: March 23, 2008

Title

Using a Variable Instead of Embedding the Filename When Using FTPReceive in a Macro

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

I would like to add the FTPReceive function to my macro using a variable rather than embedding a filename.  How can I do this with PASSPORT?

Solution

Here is the syntax for the ReceiveFile function:

 

ReceiveFile

Receives a file from the host.

 

Syntax:

 

SessionObject.ReceiveFile "localfile", "'hostfile'"

 

Parameters

 

localfile = name of file to create on local PC, including full path.

hostfile = name of file on host to receive.

More Information

Keywords

FTPReceive, macro, variable, imbed, filename, syntax, function