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 |
Start a PASSPORT session.
Choose the Communications®Disconnect menu command.
Choose the Communications®Setup menu command.
Select the Miscellaneous tab.
Enable the Startup Macro check box.
Click the Browse button and select the appropriate macro.
Click Connect to save and test.
Start the PASSPORT WEB TO HOST Administrator program.
Open the session to configure.
Select the Miscellaneous tab.
Enable the Startup Macro check box.
Choose the appropriate macro from the drop-down list.
Click OK to save or Connect to test.
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:
Go to Control Panel and open Schedule Tasks.
Double click to open Add Schedule Task.
Follow through the wizard to add a new scheduled task.
macro, time, schedule, transfer, run, automatically, start , up