Script Commands Grouped by Function

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Script Commands >

Script Commands Grouped by Function

 

CMS Encryption Commands

CMSDECRYPT Decrypt a CMS encrypted file
CMSENCRYPT Encrypt a file using CMS

 

Command Modifiers

; or *Comment line
:Label marker
@Suppress command and results from logging
!Suppress command only from logging

 

Debugging Commands

BREAK Set a script file breakpoint
GO (Re)run the currently selected script file from beginning
RESUME Resume execution of a script file stopped at a breakpoint

 

E-mail Commands

CREATEMAIL Create an e-mail message
GETMAIL Get an e-mail message
MAILTO Send an e-mail message (manually) via default e-mail client
SENDMAIL Send an e-mail message to one or more recipients

 

Remote Site Commands (FTP, SFTP, HTTP(S), AS2, S3)

FILECOMPAREFROM Compare file size and time/date stamp from FTP site
FILECOMPARETO Compare file size and time/date stamp to FTP site
FTPCD Change to a new directory on the FTP site
FTPCHMODChange permissions on a remote file
FTPCMD Send a “raw” FTP command
FTPDELDIR Delete a directory on the FTP site
FTPDELETE Delete file(s) on the FTP site
FTPDIFF Compare the current state of the remote file system with the previous state stored in a snapshot database
FTPDIFFREWIND Reset the sequential diff pointer back to be first difference found during the most recent FTPDIFF operation  
FTPGETDIFF Sequentially report the each file system difference found during the most recent FTPDIFF operation
FTPGETFILE Populates a set of variables with information about a remote file or folder specified by the [ file name ] argument
FTPGETFILEARRAYGet list of matching remote file(s)
FTPGETREWIND Reset the FTPGETFILE and/or GETSITEFILE counter to first file matching the [ file name ] argument
FTPLIST Write current FTP site directory listing to a file
FTPMAKEDIR Make a new directory on the FTP site
FTPPWD Get current directory on an FTP site
FTPRENAME Rename a file on the FTP site
FTPTMPNAME Set temporary upload file name
FTPTOJES Enable access to JES queue on IBM host (e.g., MVS)  
GETSITEFILE Populates a set of variables with information about a remote file or folder specified by the [ file name ] argument
RCVFILEDownload one or more files
TIMEZONE Set timezone difference between Robo-FTP and FTP site
TMPNAME Set temporary download file name
SENDFILE Upload one or more files
SYNC Synchronize local and FTP site files (upload + download)

 

Function Directives and Commands

BEGINFUNCTIONS Begin function declaration section in script file
ENDFUNCTION End function declaration
ENDFUNCTIONS End function declaration section in script file
FUNCTION Begin function declaration
RETURN Return from a function

 

HTTP/HTTPS Site Commands

HTTPPOSTSubmit a HTTP/HTTPS POST request
POSTVALUEAdd a value to a HTTP/HTTPS request
PREPAREPOSTBuild a HTTP/HTTPS POST request

 

AS2 Site Commands

AS2SENDFILEUpload a file as an AS2 message

 

Licensing Commands

ACTIVATELIC Activate license

 

Link Connection/Establishment and Disconnect Commands

DIALNET Initiate auto-dial connection via Dial-Up Networking
DISCONNECT Disconnect from an FTP site
FTPLOGOFF Logoff FTP site
FTPLOGON Logon FTP site
STAYALIVESpecify time-out to maintain FTP site connection

 

Local File Commands

APPEND Append one file to another
ARCHIVEDIR Set folder to archive uploaded files
CONFIGLOADLoad properties from an external configuration file (ini)
CONFIGSECTIONSLoad names of sections from an external configuration file (ini)
COPY Copy one file to another location
DELDIR Delete an empty local folder
DELETE Delete local file(s)
DIFF Compare the current state of the local file system with the previous state stored in a snapshot database
DIFFREWIND Reset the sequential diff pointer back to be first difference found during the most recent DIFF operation  
EXPORT Export configuration settings to a file
GETDIFF Sequentially report the each file system difference found during the most recent DIFF operation
GETFILE Populates a set of variables with information about a local file or folder specified by the [ file name ] argument
GETFILEARRAYGet list of matching local file(s)
GETNEXTFILE Populates a set of variables with information about a local file or folder specified by the [ file name ] argument
GETREWIND Reset the GETFILE and/or GETNEXTFILE counter to first file matching the [ file name ] argument
HASH Computes a hash sum / message authentication code of a file or string
IMPORT Import Robo-FTP configuration settings from a file
LISTDIR Write local folder listing to a file
MAKEDIR Create a new local folder
MAKEFILENAME Generate a unique, non-existent file name
MOVE Move one file to another location
PRINT Send a file to a printer
READFILE Read string variable value from text file
READXTBL Read ASCII - EBCDIC translation table file
RENAME Rename a file
UNZIP Extract file(s) from a zip archive
WORKINGDIR Specify default working folder
WRITEFILEWrite character string or string variable value to text file
ZIP Create or add to a zip archive

 

Log File / Console Control Commands

CONSOLE Control output to console window
CONSOLEMSG Write a message to the console window
DASHBOARDMSGUpdates Robo-FTP Dashboard
LOG Specify the script log file name
LOGMSG Write a message to the script log file
LOGNTEVENT Write a message to the NT application event log
SESSIONLOG Specify diagnostic log file name for secure (SSH/TLS) sessions
SETEVENT Set signaled state on a named Win32 event
SRVNAME Define service name and control interaction with Monitor
TRACELOG Specify trace/diagnostic log file name

 

PGP Encryption Commands

PGPDECRYPT Decrypt a PGP encrypted file
PGPENCRYPT Encrypt a file using PGP
PGPIMPORT Import a PGP key file set
PGPSIGN Sign a file without encryption

 

Script File Branching Commands

FTPSETERROR Store FTP result value for conditional branching
GOTO Immediate jump to label
IFDATE Conditional branch upon file date comparison
IFDATETIME Conditional branch upon file date time comparison
IFERROR Conditional branch after testing result code
IFFILE Conditional branch on file existence
IFNFILE Conditional branch on file non-existence
IFNO Conditional branch if ‘No’ is clicked in ASK dialog box
IFNSTRCMP Conditional branch when two string variables are not equal
IFNSUBSTR Conditional branch if sub-string is not found in string variable
IFNUM Conditional branch upon numeric variable comparison
IFSIZE Conditional branch upon file size comparison
IFSTRCMP Conditional branch when two string variables are equal
IFSUBSTR Conditional branch if sub-string is found in string variable
IFTIME Conditional branch upon file time comparison
IFYES Conditional branch if ‘Yes’ is clicked in ASK dialog box
LOOPCOUNT Set maximum loop repetition
LOOPIF Conditional branch used in conjunction with LOOPCOUNT
LOOPTO Unconditional branch used in conjunction with LOOPCOUNT

 

Script File Control Commands

AUDITDB Control the auditing database
CALL Call another script file
CHAIN Transfer to another script file
CRON Script scheduling using crontab file
DISPLAY Display all or a specified variable
DOSCMD Execute an internal MS-DOS command
EXEC Execute an external program
EXIT Quit Robo-FTP
NATO Specify a no activity time-out
PAUSE Pause for specified length of time or until specified hour:minute
PERFORM Execute script command contained in character string or variable
RETURN Return from a called script file
STOP Stops script processing or exit from the break state

 

SQL Database Commands

DBCLOSE Close and optionally delete a database file
DBGETRESULTS Get results from a database query
DBQUERY Issue a database query
DBREWIND Reset results search to beginning
DBUSE Create and/or open a database file

 

Variable Commands

DATEADD Add days to a date variable
DATESUB Subtract days from a date variable
DATETIMEADD Add specified amount of time to the date time variable
DATETIMESUB Subtract specified amount of time from the date time variable
DEC Decrement a variable by one
GETPROPERTY Read the value of an existing persistent name-value pair
INC Increment a variable by one
KEYS Creates an array of keys from an existing array
LOWER Convert string to lower case
SET Assign or concatenate string variable(s)
SETEXTRACT Extract delimited substring from a string
SETLEFT Extract left substring
SETLEN Assign length of specified string to a variable
SETMID Extract mid substring
SETNUM Assign or evaluate numeric variable(s)
SETPROPERTY Save or update a persistent name-value pair
SETREPLACE Replace a substring with another substring
SETRIGHT Extract right substring
SETSUBSTR Find number of substrings in string
UPPER Convert string to upper case

 

User Interface Commands

ASK Display a question in a Yes/No dialog box
BROWSE Display a pop-up open file dialog box
FTPCLIENT Activate the Robo-FTP client applet
MESSAGEBOX Display text in message box
PLAYSOUND Play a sound (.wav) file
PRESSANYKEY Suspend script execution pending a key press
PROMPT Display message box with title and prompt, and accept user input
WEBBROWSER Display a web browser window

 

Window Control Commands

MINIMIZE Minimize Robo-FTP window
RESTORE Restore minimized Robo-FTP window to original size
TRACEWIN Open/close trace log window

 

 

See also: Script Command Syntax, Sample Script Files, Translating Command-Line FTP Instructions, Script File Command Syntax, Sample Script Files