Programming Fundamentals

image\rwnprg32.gif Command Syntax


To view the help topic for an FTP Automation keyword, you can search for the keyword in the help index or refer to the Reference section of the help contents.

Every keyword reference page in the FTP Automation help starts with a syntax line. Here are some guidelines for understanding these syntax lines.

· Items that are not shown in italics are part of the FTP Automation language. You should use these in your scripts as they appear in the sample syntax. Items that are shown in italics are placeholders. In your script, these will be replaced by values or expressions appropriate to your script.

· All arguments mentioned in the syntax line for a command are described in the Arguments section for that command.

· Arguments must be used in the order shown in the syntax statement.

· Keywords and arguments are not case sensitive.

· Type all periods, commas, and parentheses shown in the syntax line for a command.

· If an argument is enclosed in square brackets, [like this], it is an optional argument. If you decide to omit an optional argument in a method, you must insert a comma where the argument would go—unless it is the last argument for the method, or unless you are omitting all subsequent arguments.

· Predefined constants always start with the letters "rc" (such as rcASCII, rcDOSCharacterSet, rcSOCKSProxy, and so on).

· When you use a Reflection FTP method or property in an FTP OLE Automation script, always precede it with the name of the Reflection FTP object and a period. For example, if you created an FTP object called "ReflectionFTP" you would reference the Close method this way: ReflectionFTP.Close.

· Quotation marks indicate literal strings. For example:

ReflectionFTP.SendFile "C:\ARCHIVE\MAY.XDS", "MAY/MAY.XDS"