Constants |
Top Previous Next |
Alphanumeric Constants Alphanumeric constants define file names and other character strings that may be used in script commands directly or assigned to script variables. Alphanumeric constants are always enclosed by single or double quotation marks. Examples of alphanumeric constants are:
COPY "file2" "file1" SET filename = "d:\export\sales2011.xls" SENDFILE ’c:\My Data\Update Inventory.dbf’
Whenever you are using a file name in a constant or variable, Robo-FTP always assumes the file is located in the working folder. If you want to reference a file elsewhere, you should always use the file’s full path name.
If you need to use a value that contains double quotation marks, enclose that value in single quotes:
SET password = '"secret"' ;; value of password is "secret"
Conversely, if you need to use a value that contains single quotes, enclose that value in double quotes:
SET password = "'secret'" ;; value of password is 'secret'
Numeric Constants Numeric constants may be used in appropriate script commands or assigned to script variables. Numeric constants differ from alphanumeric constants in that the enclosing single or double quotation marks are optional. Examples of numeric constants are:
SETNUM x = 1 SETNUM y = "2" ;; same as y = 2 NATO 60 |