Running FileLink® With Prompt.s

Top  Previous  Next

 

An alternate method to typing in commands in for FileLink to execute (rather than into the console window) is to use the provided prompt.s script file. This script file is focused around the PROMPT script command and effectively demonstrates its use. Using this command in a simple script file demonstrates a scripted, prompt-driven FileLink environment.

 

The prompt.s script file provided with FileLink for this purpose is shown below. The following script illustrates how FileLink can be scripted to prompt for a script command (which is saved in the variable var) which is then provided to the PERFORM command for execution.

 

:top

PROMPT var /history=on

IFERROR= $ERROR_PROMPT_CANCELLED goto done

PERFORM var

GOTO top

:done

ASK "Exit FileLink?"

IFNO goto top

MESSAGEBOX "Exiting FileLink"

:exit

 

The prompt dialog box looks like this.

 

prompt_dialog