PROMPT Display a text message in a pop-up dialog box |
Top Previous Next |
This command not allowed when running as a Windows service or in a locked minimized window.
This script command displays a dialog box on your display. The window title and text within the dialog are specified in the command. Control returns to next script command when you close the dialog by clicking on the OK or Cancel buttons. This command is useful to prompt for file names or other information that is not static during the course of a file transfer session.
If Robo-FTP is running a script in a unlocked minimized window then Robo-FTP window will be restored when this command is performed.
The script file can detect if the Cancel button has been clicked by testing for result code 1013 or the $ERROR variable $ERROR_PROMPT_CANCELLED.
Consider the following example of a script file that prompts you for the name of next file to send to an FTP site.
PROMPT file_name "Enter File name:" "Prompt Window" SENDFILE file_name
The prompt dialog looks like the following.
Up to three lines of text may be displayed as a prompt. Use \n and/or \r carriage control characters to format the text display. Any \n characters after the two are discarded.
The /large and /local options may not be used together.
Related Commands: MESSAGEBOX, ASK, BROWSE See also: Running Robo-FTP With Prompting
|