Export Tool command syntax

This topic explains the syntax of the Export Tool subcommands that you can write in your command file. This topic also explains the syntax of the Java command that you should use in your batch file.

Conventions

Convention

Description

bold

Indicates characters that you must type exactly as they are shown.

italics

Indicates a type of an operand. You do not need to type characters in italics exactly as they are shown.

[ ]

Indicates one or more operands that you can omit.

If two or more operands are enclosed by these square brackets and are delimited by vertical bars (|), you can select one of the operands.

{ }

Indicates that you must select one operand from the operands enclosed by the braces. Two or more operands are enclosed by the braces and are delimited by vertical bars (|).

...

Indicates that a previously used operand can be repeated.

|

Vertical bar delimiter, indicating you can select one of the operands enclosed in square brackets.

Syntax descriptions

This syntax...

Indicates you can write this script...

connect ip-address

connect 123.01.22.33

destination [directory]

destination

destination c:\temp

compress [yes|no]

compress

compress yes

compress no

answer {yes|no}

answer yes

answer no

ports [name][...]

ports

ports port-1

ports port-1 port-2

Writing a script in the command file

When you write a script in your command file, be aware of the following:

  • Ensure that only one subcommand is used in one line.
  • Empty lines in any command file will be ignored.
  • Use a semicolon (;) if you want to insert a comment in your command file. If you enter a semicolon in one line, the remaining characters in that line will be regarded as a comment.

    Following are examples of comments in a command file:

    ;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;    COMMAND FILE: command.txt    ;;;;
    ;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ip 158.214.135.57:51990      ; IP address of the SVP
    dkcsn 123456                 ; Serial No of the DKC
    login expusr "passwd"        ; Log into the SVP

Viewing the online help for subcommands

You can display the online help to view the syntax of subcommands when you are working at the command prompt. To be able to view the online help, you must use the help subcommand of Export Tool. For more information about how to use the help subcommand, see help.