DynamSoft Home| Product Home

Command Line Syntax

SAW commands entered from the Windows Command Line must begin with sawcmd. The syntax for SAW commands is as follows:

sawcmd Command  [parameter(s)][value(s)]

SAW commands entered from the Java Command Line must begin with "java -jar SAWcmd.jar". The syntax for SAW commands is as follows:

java -jar SAWcmd.jar Command  [parameter(s)][value(s)]

Commands

The commands are not case-sensitive. The commands can be either uppercase or lowercase.

For a complete list of commands in SAW Command Line, see Commands and Parameters.

Parameters

Parameters you use to modify the action of a command. They consist of a hyphen ( - ) and a letter.

For a complete list of parameters in SAW Command Line, see Commands and Parameters.

Values

The value can be a project or a file.  The value must follow the parameter letter with a space between them.

If there is any space in any command parameter value, the value must be surrounded by double quotes. For example (for Windows Command Line):

sawcmd GetFileInfo -server 127.0.0.1 -port 8787 -username test -pwd test -tempdir D:\temp -alias vss -prj $/123 -file "Text 1.txt"

In almost all cases where you can specify an item to act on, you can also specify many items by adding "/" between them. For example (for Windows Command Line):

sawcmd AddFile -server 127.0.0.1 -port 8787 -username test -pwd test -tempdir D:\temp  -alias vss -prj $/123 -file Hello.txt/Test.txt