This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Snap command line options


Command


Option

Secondary option


Meaning


Example

snap11.exe /S "filename"

 

 

Open named survey

(

If "

filename

" omitted opens last used survey)



snap11.exe /S "c:\myfolder\Survey.mdf"

Import emails and export to SnIF

 

 

 

 

 

/E

 

Import email to data entry window

snap11.exe /S "Survey.mdf" /E

 

/E "seconds"

 

Import emails at interval of "seconds" to data entry window

snap11.exe /S "Survey.mdf" /E 600

 

/ET

 

Import emails from text files to data entry window

snap11.exe /S "Survey.mdf" /ET

Requires the folders and extensions to be set up in the survey to work.

 

/IR

 

Direct Download from WebHost into data entry. Requires the server and account details to be set up first (including the password).

snap11.exe/S "Survey.mdf" /IR

 

/EX "SIFfilename"

 

Export to named SnIF file. (If no SnIF filename is specified then survey is exported to the clipboard.)

snap11.exe /S "Survey.mdf" /EX "Survey.sif"

 

 

 

Import from named file

snap11.exe /I "Survey.sif"

Run a report

 

 

 

 

 

 /B "report"

 

Execute the named report. The export method is as specified by the current tailoring. (If the report name is omitted, the reports overview window is opened)

snap11.exe /S "Survey.mdf" /B "bt1"

 

 

 

/F "expression"

Apply filter expression

snap11.exe /S "Survey.mdf" /B "bt1" /F "Q1=1"
s

 

 

/N "printname"

Specify name of print job (only useful when using a program such as ghostscript which converts job name into file name)

snap11.exe /S "Survey.mdf" /B "bt1" /N "output.pdf"

 

 

/C q = "val"

Specify a context variable value (

q@context)

May be repeated for multiple context variables

snap11.exe /S "Survey.mdf" /C q1=1 /C q2="example" /B bt1

 

 

/XS "extFilename"

Specifies the external survey to use when running a suitable report

snap11.exe /S "Survey.mdf" /XS "Benchmarks.mdf" /B bt1

{

bt1

is a report in

Survey

which is already configured}}

Print from questionnaire window

 

 

 

 

 

 /P 

 

Print questionnaire design window

snap11.exe /S "Survey.mdf" /P

 

 

 /V "dbLink"

Print panel view of all cases from the named database link

If "

dblink

" omitted, prints raw data from data view of questionnaire window

snap11.exe /S "Survey.mdf" /P /V "Customer Details"

The database link must be an 'import all cases' type. The database link name is case sensitive.

 

 

/V /O sep "dbLink"

Print panel view data cases separated into separate print jobs

snap11.exe /S "Survey.mdf" /P /V /O sep

 

 

/F "expression"

Apply filter expression

snap11.exe /S "Survey.mdf" /P /V /F "case <= 10"

 

 

/ED "edition"

Specify edition to print

snap11.exe /S "Survey.mdf" /P /ED "Paper: Keyed"

Name must be an exact match, including any spaces.


 

 

/L "lang"

Specify language to print.

lang

can be name of language or two letter code

snap11.exe /S "Survey.mdf" /P /ED "Paper: Keyed" /L "French"

snap11.exe /S "Survey.mdf" /P  /L "fr"

 

 

/N "printname"

Specify name of print job (only useful when using a program such as ghostscript which converts job name into file name)

snap11.exe /S "Survey.mdf" /P /ED "Paper: Keyed" /N "output.pdf"

Run a database link

 

 

 

 

 

/DB "dbLink"

 

Execute a named database link from the data entry window.


dbLink

is case sensitive.


snap11.exe /S "Survey.mdf" /DB "Customer Details"

Run an automated data report

 

 

 

 

 

/X "adrFile"

 

Run an adr file created in the Automated Data Report toolkit program

snap11.exe /S "Survey.mdf" /X "dataReport.adr"

Open Snap in specified window

 

 

 

 

 

/Q

 

Open survey with the Questionnaire design window open


 snap11.exe /S "Survey.mdf" /Q

 

 

/ED "edition"

Open specified edition in design view.

edition

must be an exact match, including any spaces.


 

 

 

/L "lang"

Open specified language in design view.

lang

can be full name or two letter code

snap11.exe /S "Survey.mdf" /Q /ED "Paper: Keyed" /L "French"
snap11.exe /S "Survey.mdf" /Q  /L "fr"

 

 

 

 

 

 

/D

 

Open survey with the Data entry window open


snap11.exe /S "Survey.mdf" /D

 

/T

 

Open survey with the results overview window open

 

 

/W

 

Open survey with the weights overview window open.

 

 

/Q

 

Opens the results definition dialog for a new table

 

 

/B

 

Opens the reports window overview

 

 

"path/"

 

Open survey overview window with specified path

snap11.exe /S "c:\myfolder\"

Options for running Snap

 

 

 

 

 

 -#num

 

Selects a licence when multiple licences are available. num is the index of the licence file.

snap11.exe -#1

 

 /y

 

Suppress message boxes without logging


snap11.exe /S "Survey.mdf"  /B bt1 /y

 

/Y

 

Suppress message boxes and record the messages and default answers in file 

SnapMessageLog.txt

snap11.exe /S "Survey.mdf" /B bt1  /Y

Import from SiF

 

 

 

 

 /I "filename"

 

 

Import a named file

snap11.exe /I "Survey.sif"

In general:

Return values

0

success

1

Unspecified Error

2

File Not Found

3

File Access Error

4

Data Error

5

Object Not Found

6

Process Aborted

7

Licence Error

8

Terminal Error

random

crash

See Also

Snap 11 technical summary

Snap expressions

Snap files

Snap WebHost files used for execution

Snap Professional files uploaded to Snap WebHost

Data export specification