Scheduling a Macro to Run at a Specific Time
PASSPORT PC to Host, PASSPORT Web to Host
TN3270, TN5250, VT, SCO ANSI, Wyse 60
I would like to configure PASSPORT to receive a file at a specified time each day from my TN3270 host using IND$FILE. Is this possible?
A PASSPORT session can be configured to use a startup macro, which can perform the ReceiveFile function (see sample below). Then the Windows Task Scheduler may be used to start the PASSPORT session at the specified time.
Sub ZMain() Dim Text, ret SendHostKeys ("MyLogon<ENTER>") ret = WaitForHostUpdate(10) ret = WaitForHostUpdate(10) SendHostKeys ("MyPassword<ENTER>") ret = WaitForHostUpdate(10) ret = WaitForHostUpdate(10) ret = ReceiveFile ("C:\MyPCFile.txt MyHostFile.txt ASCII CRLF") ret = WaitForHostUpdate(10) ret = WaitForHostUpdate(10) End Sub |
IND$FILE file transfer is currently only available for TN3270 sessions.
To run a scheduled macro from PASSPORT at specified time every day, you will need to configure your Windows XP to run a scheduled task. Follow the steps below:
macro, time, schedule, transfer, run, automatically, start , up