Comments in Script Files

Top  Previous  Next

 

Either a semi-colon or an asterisk may be used to denote the beginning of a comment in a Robo-FTP script file. A comment may be a separate line unto itself or be on the same line as a command.

 

Consider the following examples of valid script file comments.

 

; Log on to an FTP site

FTPLOGON

 

* this is a comment line

MESSAGEBOX "hello world"

DIALNET "My Connection" ;; use Dial-Up Networking

 

Any text appearing after a semi-colon or asterisk character on a line is a comment. Consider the following example:

 

FTPLOGON "192.168.1.15" /user=Robo /pw=secr*t /servertype=FTPS

 

The line above would fail because the password contains an asterisk so the command parser will treat the remainder of the line as a comment. The issue may be resolved by using quotes as follows:

 

FTPLOGON "192.168.1.15" /user=Robo /pw="secr*t" /servertype=FTPS